File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,11 @@ import Sidebar from "../../components/Sidebar/Sidebar";
33import Main from "../../components/Main/Main" ;
44import { StepContext } from "../../context/StepContext" ;
55import { UserProvider } from "../../context/UserContext" ;
6- import { BrowserRouter } from "react-router-dom" ;
6+ import { BrowserRouter , Route , Switch } from "react-router-dom" ;
7+ import Layout from "../../components/Layout/Layout" ;
8+ import ContactDetails from "../../components/ContactDetails/ContactDetails" ;
9+ import InvestmentPlans from "../../components/InvestmentPlans/InvestmentPlans" ;
10+ import InvestmentPreferences from "../../components/InvestmentPreferences/InvestmentPreferences" ;
711
812export default function App ( ) {
913
@@ -13,10 +17,17 @@ export default function App() {
1317 < StepContext . Provider value = { [ step , setStep ] } >
1418 < UserProvider >
1519 < BrowserRouter >
16- < div className = "app-container" >
17- < Sidebar />
18- < Main />
19- </ div >
20+ < Switch >
21+ < Route exact path = "/" >
22+ < Layout > < ContactDetails /> </ Layout >
23+ </ Route >
24+ < Route path = "/step2" >
25+ < Layout > < InvestmentPlans /> </ Layout >
26+ </ Route >
27+ < Route path = "/step3" >
28+ < Layout > < InvestmentPreferences /> </ Layout >
29+ </ Route >
30+ </ Switch >
2031 </ BrowserRouter >
2132 </ UserProvider >
2233 </ StepContext . Provider >
You can’t perform that action at this time.
0 commit comments