diff options
author | crupest <crupest@outlook.com> | 2021-04-16 17:43:16 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-16 17:43:16 +0800 |
commit | 2981b7fb9002ee424a4e4358f04914de63f60141 (patch) | |
tree | 3a94b828f93dd457060999ae989c988ef32f1812 /FrontEnd/src/app/views/home/BoardWithoutUser.tsx | |
parent | 3db441fccf1a933ac8ec9e4f89c19f81efd66052 (diff) | |
download | timeline-2981b7fb9002ee424a4e4358f04914de63f60141.tar.gz timeline-2981b7fb9002ee424a4e4358f04914de63f60141.tar.bz2 timeline-2981b7fb9002ee424a4e4358f04914de63f60141.zip |
...
Diffstat (limited to 'FrontEnd/src/app/views/home/BoardWithoutUser.tsx')
-rw-r--r-- | FrontEnd/src/app/views/home/BoardWithoutUser.tsx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/FrontEnd/src/app/views/home/BoardWithoutUser.tsx b/FrontEnd/src/app/views/home/BoardWithoutUser.tsx deleted file mode 100644 index d9c7fcf4..00000000 --- a/FrontEnd/src/app/views/home/BoardWithoutUser.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import React from "react"; -import { Row, Col } from "react-bootstrap"; -import { useTranslation } from "react-i18next"; - -import { getHttpHighlightClient } from "@/http/highlight"; -import { getHttpTimelineClient } from "@/http/timeline"; - -import TimelineBoard from "./TimelineBoard"; - -const BoardWithoutUser: React.FC = () => { - const { t } = useTranslation(); - - return ( - <Row className="my-3 justify-content-center"> - <Col xs="12" md="6"> - <TimelineBoard - title={t("home.highlightTimeline")} - load={() => getHttpHighlightClient().list()} - /> - </Col> - <Col xs="12" md="6" className="my-3 my-md-0"> - <TimelineBoard - title={t("home.publicTimeline")} - load={() => - getHttpTimelineClient().listTimeline({ visibility: "Public" }) - } - /> - </Col> - </Row> - ); -}; - -export default BoardWithoutUser; |