File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 11import React , { lazy , Suspense } from 'react' ;
2- import { Switch } from 'react-router-dom' ;
2+ import { Route , Switch } from 'react-router-dom' ;
3+ import { PATH } from 'src/contstants/paths' ;
34import { Loading } from 'src/components/Loading' ;
45const Home = lazy ( ( ) => import ( 'src/pages/Home' ) ) ;
56
67const HomeRoutes = ( ) => {
78 return (
89 < Switch >
9- < Suspense fallback = { < Loading /> } >
10- < Home />
11- </ Suspense >
10+ < Route
11+ exact
12+ path = { PATH . HOME }
13+ component = { ( ) => (
14+ < Suspense fallback = { < Loading /> } >
15+ < Home />
16+ </ Suspense >
17+ ) }
18+ > </ Route >
1219 </ Switch >
1320 ) ;
1421} ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const StepFormRoutes = () => {
99 return (
1010 < Switch >
1111 < Route
12+ exact
1213 path = { PATH . STEP_FORM }
1314 component = { ( ) => (
1415 < Suspense fallback = { < Loading /> } >
You can’t perform that action at this time.
0 commit comments