From 47587812b809fee2a95c76266d9d0e42fc4ac1ca Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Tue, 15 Jun 2021 14:14:28 +0800
Subject: ...

---
 FrontEnd/src/views/user/index.tsx | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 FrontEnd/src/views/user/index.tsx

(limited to 'FrontEnd/src/views/user/index.tsx')

diff --git a/FrontEnd/src/views/user/index.tsx b/FrontEnd/src/views/user/index.tsx
new file mode 100644
index 00000000..57454d0d
--- /dev/null
+++ b/FrontEnd/src/views/user/index.tsx
@@ -0,0 +1,28 @@
+import React from "react";
+import { useParams } from "react-router";
+
+import TimelinePageTemplate from "../timeline-common/TimelinePageTemplate";
+import UserCard from "./UserCard";
+
+const UserPage: React.FC = () => {
+  const { username } = useParams<{ username: string }>();
+
+  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;
-- 
cgit v1.2.3

