Skip to content

Commit

Permalink
add failure route
Browse files Browse the repository at this point in the history
  • Loading branch information
sayjeyhi committed Dec 11, 2020
1 parent e697915 commit 1bea2c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Index from './site/Index';
const About = lazy(() => import('./About'));
const Faq = lazy(() => import('./Faq'));
const Success = lazy(() => import('./Success'));
const Failure = lazy(() => import('./Failure'));
const NotFound = lazy(() => import('./404'));


Expand All @@ -19,6 +20,7 @@ const App = () => (
<Route path='/about' component={About}/>
<Route path='/faq' component={Faq}/>
<Route path='/success' component={Success}/>
<Route path='/failure' component={Failure}/>
<Route component={NotFound}/>
</Switch>
</Suspense>
Expand Down

0 comments on commit 1bea2c3

Please sign in to comment.