mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Fix react router paths to show error page on undefined pages
This commit is contained in:
parent
b554730841
commit
a62e0771f0
1 changed files with 3 additions and 2 deletions
|
|
@ -35,8 +35,9 @@ export const App: React.FC = () => (
|
|||
}}
|
||||
>
|
||||
<Switch>
|
||||
<Route path="/" component={ListsTable} />
|
||||
<Route component={NotFound} />
|
||||
<Route exact path="/" component={ListsTable} />
|
||||
<Route path="/lists/*" component={ListsTable} />
|
||||
<Route path="*" component={NotFound} />
|
||||
</Switch>
|
||||
</div>
|
||||
</Content>
|
||||
|
|
|
|||
Loading…
Reference in a new issue