aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/user/index.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-04-10 16:04:03 +0800
committercrupest <crupest@outlook.com>2022-04-10 16:04:03 +0800
commit928ba0ce419bacba113951095278a5138ead34cf (patch)
treead4bc6b985c21e751199a25a77f36da7163a47c5 /FrontEnd/src/views/user/index.tsx
parent86160e4a5697615452a7e06dc78f8be4c8b2515f (diff)
downloadtimeline-928ba0ce419bacba113951095278a5138ead34cf.tar.gz
timeline-928ba0ce419bacba113951095278a5138ead34cf.tar.bz2
timeline-928ba0ce419bacba113951095278a5138ead34cf.zip
...
Diffstat (limited to 'FrontEnd/src/views/user/index.tsx')
-rw-r--r--FrontEnd/src/views/user/index.tsx36
1 files changed, 0 insertions, 36 deletions
diff --git a/FrontEnd/src/views/user/index.tsx b/FrontEnd/src/views/user/index.tsx
deleted file mode 100644
index 7913b788..00000000
--- a/FrontEnd/src/views/user/index.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import React from "react";
-import { useParams } from "react-router-dom";
-
-import TimelinePageTemplate from "../timeline-common/TimelinePageTemplate";
-import UserCard from "./UserCard";
-
-import { UiLogicError } from "@/common";
-
-import "./index.css";
-
-const UserPage: React.FC = () => {
- const { username } = useParams();
-
- if (username == null) {
- throw new UiLogicError("No route param 'username'.");
- }
-
- const [reloadKey, setReloadKey] = React.useState<number>(0);
-
- let dialogElement: React.ReactElement | undefined;
-
- return (
- <>
- <TimelinePageTemplate
- timelineName={`@${username}`}
- notFoundI18nKey="timeline.userNotExist"
- reloadKey={reloadKey}
- onReload={() => setReloadKey(reloadKey + 1)}
- CardComponent={UserCard}
- />
- {dialogElement}
- </>
- );
-};
-
-export default UserPage;