-
Notifications
You must be signed in to change notification settings - Fork 1
/
routes.tsx
38 lines (32 loc) · 1.22 KB
/
routes.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
35
36
37
38
import { Routes, Route } from 'react-router-dom';
import Leaderboard from '~/pages/Leaderboard';
import Swap from './pages/Swap';
import Incentives from '~/pages/Incentives';
import Trade from '~/pages/Trade';
import LpRewards from './pages/Incentives/past/LpRewards';
import React from 'react';
import { TONIC_HAS_LEADERBOARD, TONIC_HAS_REWARDS } from './config';
import List from './pages/List';
function routes() {
return (
<Routes>
<Route index element={<Trade />} />
{/* <Route path="/simple" element={<Swap />} /> */}
{/* <Route path="/simple/:base/:quote" element={<Swap />} /> */}
<Route path="/advanced" element={<Trade />} />
<Route path="/advanced/:market" element={<Trade />} />
{/* <Route path="/list" element={<List />} /> */}
{/* {TONIC_HAS_LEADERBOARD && (
<Route path="/leaderboard" element={<Leaderboard />} />
)} */}
{/* {TONIC_HAS_REWARDS && (
<React.Fragment>
<Route path="/incentives" element={<Incentives />} />
<Route path="/incentives/past/usn-usdc" element={<LpRewards />} />
<Route path="/rewards" element={<LpRewards />} />
</React.Fragment>
)} */}
</Routes>
);
}
export default routes;