File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/scripts/components/Step Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import ContactDetails from "../ContactDetails/ContactDetails";
66import InvestmentPlans from "../InvestmentPlans/InvestmentPlans" ;
77import InvestmentPreferences from "../InvestmentPreferences/InvestmentPreferences" ;
88
9- export default function Step ( ) {
9+ export default function Step ( { children } ) {
1010
1111 const [ step , setStep ] = useContext ( StepContext ) ;
1212
@@ -16,11 +16,7 @@ export default function Step() {
1616 < div className = "step__title" > { steps . stepPage [ step ] . title } </ div >
1717 < div className = "step__caption" > { steps . stepPage [ step ] . caption } </ div >
1818 </ div >
19- < Switch >
20- < Route exact path = "/" component = { ContactDetails } />
21- < Route path = "/step2" component = { InvestmentPlans } />
22- < Route path = "/step3" component = { InvestmentPreferences } />
23- </ Switch >
19+ { children }
2420 </ div >
2521 )
2622}
You can’t perform that action at this time.
0 commit comments