refactor: add typescript support to project

This commit is contained in:
HD
2022-06-20 17:49:36 +08:00
19 changed files with 382 additions and 156 deletions
+3 -3
View File
@@ -64,7 +64,7 @@ const PageRoutes = () => {
}
/>
<Route
path="/reg"
path="/register"
element={
<RequireNoAuth>
<RegBasePage />
@@ -72,9 +72,9 @@ const PageRoutes = () => {
}
>
<Route index element={<RegPage />} />
<Route path="magiclink">
<Route path="set_name">
<Route index element={<RegWithUsernamePage />} />
<Route path=":token" element={<RegWithUsernamePage />} />
<Route path=":from" element={<RegWithUsernamePage />} />
</Route>
</Route>
<Route