-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
34 lines (32 loc) · 1.1 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import Community from '@pages/Community';
import DM from '@pages/DM';
import DMRoom from '@pages/DMRoom';
import Followers from '@pages/Followers';
import Followings from '@pages/Followings';
import Home from '@pages/Home';
import NotFound from '@pages/NotFound';
import SignIn from '@pages/SignIn';
import SignUp from '@pages/SignUp';
import UserSearch from '@pages/UserSearch';
import React from 'react';
import { Route, Routes } from 'react-router-dom';
const App = () => (
<Routes>
<Route path="/" element={<Home />}>
<Route path="dms" element={<DM />}>
<Route path="followings" element={<Followings />} />
<Route path="followers" element={<Followers />} />
<Route path="user-search" element={<UserSearch />} />
<Route path=":roomId" element={<DMRoom />} />
</Route>
<Route
path="communities/:communityId/channels/:roomId"
element={<Community />}
/>
</Route>
<Route path="/sign-in" element={<SignIn />} />
<Route path="/sign-up" element={<SignUp />} />
<Route path="*" element={<NotFound />} />
</Routes>
);
export default App;