aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-04-30 23:08:24 +0800
committercrupest <crupest@outlook.com>2022-04-30 23:08:24 +0800
commit7c2148159e1cba4db5ef5775765e2c74946a9596 (patch)
tree949115070e1f0cc6055d4522e9fe5af16bf5b867 /FrontEnd/src
parent3281f057240991381e680f8e0f5bb48d14a7db93 (diff)
downloadtimeline-7c2148159e1cba4db5ef5775765e2c74946a9596.tar.gz
timeline-7c2148159e1cba4db5ef5775765e2c74946a9596.tar.bz2
timeline-7c2148159e1cba4db5ef5775765e2c74946a9596.zip
...
Diffstat (limited to 'FrontEnd/src')
-rw-r--r--FrontEnd/src/App.tsx2
-rw-r--r--FrontEnd/src/views/common/UserTimelineLogo.tsx26
2 files changed, 2 insertions, 26 deletions
diff --git a/FrontEnd/src/App.tsx b/FrontEnd/src/App.tsx
index ab7ebae9..8fafc02e 100644
--- a/FrontEnd/src/App.tsx
+++ b/FrontEnd/src/App.tsx
@@ -6,6 +6,7 @@ import LoadingPage from "./views/common/LoadingPage";
import Center from "./views/center";
import Home from "./views/home";
import Login from "./views/login";
+import Register from "./views/register";
import Settings from "./views/settings";
import About from "./views/about";
import TimelinePage from "./views/timeline";
@@ -32,6 +33,7 @@ function App(): ReactElement | null {
<Route path="/home" element={<Home />} />
<Route path="/center" element={<Center />} />
<Route path="/login" element={<Login />} />
+ <Route path="/register" element={<Register />} />
<Route path="/settings" element={<Settings />} />
<Route path="/about" element={<About />} />
<Route path="/search" element={<Search />} />
diff --git a/FrontEnd/src/views/common/UserTimelineLogo.tsx b/FrontEnd/src/views/common/UserTimelineLogo.tsx
deleted file mode 100644
index 19b9fee5..00000000
--- a/FrontEnd/src/views/common/UserTimelineLogo.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import React, { SVGAttributes } from "react";
-
-export interface UserTimelineLogoProps extends SVGAttributes<SVGElement> {
- color?: string;
-}
-
-const UserTimelineLogo: React.FC<UserTimelineLogoProps> = (props) => {
- const { color, ...forwardProps } = props;
- const coercedColor = color ?? "currentcolor";
-
- return (
- <svg viewBox="0 0 100 100" {...forwardProps}>
- <g fill="none" stroke={coercedColor} strokeWidth="12">
- <line x1="50" x2="50" y1="0" y2="25" />
- <circle cx="50" cy="50" r="22" />
- <line x1="50" x2="50" y1="75" y2="100" />
- </g>
- <g fill={coercedColor}>
- <circle cx="85" cy="75" r="10" />
- <path d="m70,100c0,0 15,-30 30,0.25" />
- </g>
- </svg>
- );
-};
-
-export default UserTimelineLogo;