Fix react router paths to show error page on undefined pages

This commit is contained in:
AzureAD\TomasValiunas 2020-10-05 22:17:24 +03:00 committed by Collin M. Barrett
parent b554730841
commit a62e0771f0

View file

@ -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>