Browse Source

Fix route paths.

The default route / has to come last
shutdown-taker-if-no-maker-present
itchymax 3 years ago
parent
commit
f39f206ce8
No known key found for this signature in database GPG Key ID: E5F8E74C672BC666
  1. 6
      taker-frontend/src/App.tsx

6
taker-frontend/src/App.tsx

@ -120,6 +120,9 @@ export const App = () => {
<Nav walletInfo={walletInfo} /> <Nav walletInfo={walletInfo} />
<Box textAlign="center" padding={3}> <Box textAlign="center" padding={3}>
<Switch> <Switch>
<Route path="/wallet">
<Wallet walletInfo={walletInfo} />
</Route>
<Route path="/"> <Route path="/">
<VStack divider={<StackDivider borderColor="gray.500" />} spacing={4}> <VStack divider={<StackDivider borderColor="gray.500" />} spacing={4}>
<Trade <Trade
@ -158,9 +161,6 @@ export const App = () => {
/> />
</VStack> </VStack>
</Route> </Route>
<Route path="/wallet">
<Wallet walletInfo={walletInfo} />
</Route>
</Switch> </Switch>
</Box> </Box>
</> </>

Loading…
Cancel
Save