@@ -14,33 +14,23 @@ import '../../styles/global/_index.scss'
1414
1515import styles from './styles.module.scss'
1616
17- const OnboardingContent : FC < {
17+ const OnboardingFooterContent : FC < {
1818 fetchMemberInfo : ( ) => void
1919 fetchMemberTraits : ( ) => void
2020 reduxMemberInfo : Member | undefined
2121} > = props => {
22- const { getChildRoutes } : RouterContextData = useContext ( routerContext )
2322 useEffect ( ( ) => {
2423 props . fetchMemberInfo ( )
2524 props . fetchMemberTraits ( )
2625 /* eslint-disable react-hooks/exhaustive-deps */
2726 } , [ ] )
2827
2928 return (
30- < >
31- < div className = { classNames ( 'd-flex flex-column' , styles . container ) } >
32- < Outlet />
33- < Routes >
34- { getChildRoutes ( onboardRouteId ) }
35- </ Routes >
36- < div id = 'calendar-portal' />
37- </ div >
38- < span className = { styles . textFooter } >
39- I will complete this onboarding later,
40- < a href = { `${ EnvironmentConfig . USER_PROFILE_URL } /${ props . reduxMemberInfo ?. handle } ` } > skip for now</ a >
41- .
42- </ span >
43- </ >
29+ < span className = { styles . textFooter } >
30+ I will complete this onboarding later,
31+ < a href = { `${ EnvironmentConfig . USER_PROFILE_URL } /${ props . reduxMemberInfo ?. handle } ` } > skip for now</ a >
32+ .
33+ </ span >
4434 )
4535}
4636
@@ -58,12 +48,30 @@ const mapDispatchToProps: any = {
5848 fetchMemberInfo,
5949 fetchMemberTraits,
6050}
61- const Onboarding : any = connect ( mapStateToProps , mapDispatchToProps ) ( OnboardingContent )
51+ const OnboardingFooter : any = connect ( mapStateToProps , mapDispatchToProps ) ( OnboardingFooterContent )
52+
53+ const OnboardingContent : FC < {
54+ } > = ( ) => {
55+ const { getChildRoutes } : RouterContextData = useContext ( routerContext )
56+
57+ return (
58+ < >
59+ < div className = { classNames ( 'd-flex flex-column' , styles . container ) } >
60+ < Outlet />
61+ < Routes >
62+ { getChildRoutes ( onboardRouteId ) }
63+ </ Routes >
64+ < div id = 'calendar-portal' />
65+ </ div >
66+ < OnboardingFooter />
67+ </ >
68+ )
69+ }
6270
6371export const OnboardingWrapper : FC < { } > = ( ) => (
6472 < div className = { classNames ( styles . blockWrapper , 'd-flex flex-column align-items-center' ) } >
6573 < Provider store = { store } >
66- < Onboarding />
74+ < OnboardingContent />
6775 </ Provider >
6876 </ div >
6977)
0 commit comments