aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/home/TimelineBoard.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-14 17:29:11 +0800
committercrupest <crupest@outlook.com>2021-02-14 17:29:11 +0800
commit3f6dbd2bd0fc8c9439733c88f6c169ed28c2def7 (patch)
treec37106467d66f61a9b6143a60f703b37dc3d8981 /FrontEnd/src/app/views/home/TimelineBoard.tsx
parent8ba5bfb5e3ce2b7f398f1893efde4bd92fcb6015 (diff)
downloadtimeline-3f6dbd2bd0fc8c9439733c88f6c169ed28c2def7.tar.gz
timeline-3f6dbd2bd0fc8c9439733c88f6c169ed28c2def7.tar.bz2
timeline-3f6dbd2bd0fc8c9439733c88f6c169ed28c2def7.zip
...
Diffstat (limited to 'FrontEnd/src/app/views/home/TimelineBoard.tsx')
-rw-r--r--FrontEnd/src/app/views/home/TimelineBoard.tsx17
1 files changed, 3 insertions, 14 deletions
diff --git a/FrontEnd/src/app/views/home/TimelineBoard.tsx b/FrontEnd/src/app/views/home/TimelineBoard.tsx
index 58988b17..552ec7dd 100644
--- a/FrontEnd/src/app/views/home/TimelineBoard.tsx
+++ b/FrontEnd/src/app/views/home/TimelineBoard.tsx
@@ -1,13 +1,14 @@
import React from "react";
import clsx from "clsx";
import { Link } from "react-router-dom";
-import { Trans, useTranslation } from "react-i18next";
+import { useTranslation } from "react-i18next";
import { Spinner } from "react-bootstrap";
import { HttpTimelineInfo } from "@/http/timeline";
import TimelineLogo from "../common/TimelineLogo";
import UserTimelineLogo from "../common/UserTimelineLogo";
+import LoadFailReload from "../common/LoadFailReload";
interface TimelineBoardItemProps {
timeline: HttpTimelineInfo;
@@ -259,19 +260,7 @@ const TimelineBoardUI: React.FC<TimelineBoardUIProps> = (props) => {
} else if (timelines === "offline") {
return (
<div className="d-flex flex-grow-1 justify-content-center align-items-center">
- <Trans i18nKey="loadFailReload" parent="div">
- 0
- <a
- href="#"
- onClick={(e) => {
- props.onReload();
- e.preventDefault();
- }}
- >
- 1
- </a>
- 2
- </Trans>
+ <LoadFailReload onReload={props.onReload} />
</div>
);
} else {