chore: add user detail page

This commit is contained in:
Steven
2022-09-13 20:57:15 +08:00
parent 90639322b7
commit 156218b40f
14 changed files with 76 additions and 200 deletions

View File

@ -6,6 +6,7 @@ import Only from "./components/common/OnlyWhen";
import Auth from "./pages/Auth";
import Home from "./pages/Home";
import WorkspaceDetail from "./pages/WorkspaceDetail";
import UserDetail from "./pages/UserDetail";
function App() {
const navigate = useNavigate();
@ -30,6 +31,7 @@ function App() {
<Routes>
<Route index element={<Home />} />
<Route path="/auth" element={<Auth />} />
<Route path="/user/:userId" element={<UserDetail />} />
<Route path="/workspace/:workspaceId" element={<WorkspaceDetail />} />
</Routes>
</Only>