Skip to content

Commit

Permalink
fix: router, make copy-paste URL work
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Mar 16, 2022
1 parent 9725b08 commit b8a2acb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/navigation/AppNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ const AppNavigator = () => {
<Router history={history}>
<Dashboard>
<Suspense fallback={<IndeterminateProgressOverlay />}>
<Route exact path="/" render={() => <Redirect to="/projects" />}>
<Pages.Projects />
<Route exact path="/">
<Redirect to="/projects" />
</Route>
<Route path="/units">
<Pages.Units />
</Route>
<Route path="/projects">
<Pages.Projects />
</Route>
<Route exact path="/storybook">
<Route path="/storybook">
<Pages.StoryBook />
</Route>
<Route path="*" render={() => <Redirect to="/" />} />
<Redirect to="/" />
</Suspense>
</Dashboard>
</Router>
Expand Down

0 comments on commit b8a2acb

Please sign in to comment.