feat: oauth page

This commit is contained in:
zerosoul
2022-04-26 11:32:12 +08:00
parent a2959dea50
commit 457b5e4f2f
3 changed files with 145 additions and 0 deletions
+9
View File
@@ -3,6 +3,7 @@ import { Route, Routes, HashRouter } from "react-router-dom";
import { Provider, useSelector } from "react-redux";
// import Welcome from './Welcome'
import NotFoundPage from "./404";
import OAuthPage from "./oauth";
import LoginPage from "./login";
import HomePage from "./home";
import ChatPage from "./chat";
@@ -38,6 +39,14 @@ const PageRoutes = () => {
return (
<HashRouter>
<Routes>
<Route
path="/oauth/:token"
element={
<RequireNoAuth>
<OAuthPage />
</RequireNoAuth>
}
/>
<Route
path="/login"
element={