Advertisement
Capple

Untitled

Jan 10th, 2021
1,352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.16 KB | None | 0 0
  1. <Switch>
  2.                 <Route exact path={INDEX_PATH} component={
  3.                   RouteWrapContainer(props => <HomeContainer {...props} />)
  4.                 } />
  5.                 <Route exact path={LOGIN_PATH} component={
  6.                   RouteWrapContainer(props => <LoginContainer {...props} />)
  7.                 } />
  8.                 <Route path={SEARCH_PATH} component={
  9.                   RouteWrapContainer(props => <SearchContainer {...props} />)
  10.                 } />
  11.                 <Route path={CURRICULUM_ADD_PATH} component={
  12.                   RouteWrapContainer(props => <CurriculumAddContainer {...props} />, { restrict: true })
  13.                 } />
  14.                 <Route path={CURRICULUM_PATH} component={
  15.                   RouteWrapContainer(props => <CurriculumContainer {...props} />)
  16.                 } />
  17.                 <Route exact path={SUPERVISOR_PATH} component={
  18.                   RouteWrapContainer(props => <SupervisorContainer {...props} />)
  19.                 } />
  20.                 <Route path={ADMIN_PATH} component={
  21.                   RouteWrapContainer(props => <AdminContainer {...props} />, {restrict: true})
  22.                 } />
  23.                 <Route path={SETTINGS_ACCOUNT_PATH} component={
  24.                   RouteWrapContainer(props => <SettingsAccountContainer {...props} />, {restrict: true})
  25.                 } />
  26.                 <Route path={SETTINGS_PASSWORD_PATH} component={
  27.                   RouteWrapContainer(props => <SettingsPasswordContainer {...props} />, {restrict: true})
  28.                 } />
  29.                 <Route path={ACCOUNT_FORGOT} component={
  30.                   RouteWrapContainer(props => <AccountForgotContainer {...props} />)
  31.                 } />
  32.                 <Route path={ACCOUNT_PASSWORD} component={
  33.                   RouteWrapContainer(props => <AccountPasswordContainer {...props} />)
  34.                 } />
  35.                 <Route path={TOS_PATH} component={
  36.                   RouteWrapContainer(props => <TermsOfServiceContainer {...props} />)
  37.                 } />
  38.                 <Route component={
  39.                   RouteWrapContainer(props => <NotFound {...props} />)
  40.                 } path='/404' />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement