Added elements for mobile payments. BOD-90

This commit is contained in:
Patrick Fic
2020-07-24 16:30:21 -07:00
parent 1e00b376ea
commit 8750894c56
8 changed files with 278 additions and 140 deletions

View File

@@ -24,6 +24,9 @@ const Unauthorized = lazy(() =>
import("../pages/unauthorized/unauthorized.component")
);
const CsiPage = lazy(() => import("../pages/csi/csi.container.page"));
const MobilePaymentContainer = lazy(() =>
import("../pages/mobile-payment/mobile-payment.container")
);
const mapStateToProps = createStructuredSelector({
currentUser: selectCurrentUser,
@@ -50,20 +53,25 @@ export function App({ checkUserSession, currentUser }) {
<div>
<Switch>
<ErrorBoundary>
<Suspense fallback={<LoadingSpinner message='App.Js Suspense' />}>
<Route exact path='/' component={LandingPage} />
<Route exact path='/unauthorized' component={Unauthorized} />
<Route exact path='/signin' component={SignInPage} />
<Route exact path='/resetpassword' component={ResetPassword} />
<Route exact path='/csi/:surveyId' component={CsiPage} />
<Suspense fallback={<LoadingSpinner message="App.Js Suspense" />}>
<Route exact path="/" component={LandingPage} />
<Route exact path="/unauthorized" component={Unauthorized} />
<Route exact path="/signin" component={SignInPage} />
<Route exact path="/resetpassword" component={ResetPassword} />
<Route exact path="/csi/:surveyId" component={CsiPage} />
<Route
exact
path="/mp/:paymentIs"
component={MobilePaymentContainer}
/>
<PrivateRoute
isAuthorized={currentUser.authorized}
path='/manage'
path="/manage"
component={ManagePage}
/>
<PrivateRoute
isAuthorized={currentUser.authorized}
path='/tech'
path="/tech"
component={TechPageContainer}
/>
</Suspense>