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
commitfe7587f44296b88c08927d2eae8fda3f375eaa8c (patch)
tree4b073fb0fe0c56de989b6d21de34311d76672c59 /FrontEnd/src/app/views/home/TimelineBoard.tsx
parent6791c26e28b5113796fdf34e29f7affe12ee556e (diff)
downloadtimeline-fe7587f44296b88c08927d2eae8fda3f375eaa8c.tar.gz
timeline-fe7587f44296b88c08927d2eae8fda3f375eaa8c.tar.bz2
timeline-fe7587f44296b88c08927d2eae8fda3f375eaa8c.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 {