Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7377 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7377 Rev 7378
Línea 79... Línea 79...
79
const MyCoachViewPage = lazy(() => import('../pages/my-coach/MyCoachViewPage'))
79
const MyCoachViewPage = lazy(() => import('../pages/my-coach/MyCoachViewPage'))
80
const JobViewPage = lazy(() => import('../pages/jobs/JobView'))
80
const JobViewPage = lazy(() => import('../pages/jobs/JobView'))
81
const CalendarPage = lazy(() => import('../pages/calendar/CalendarPage'))
81
const CalendarPage = lazy(() => import('../pages/calendar/CalendarPage'))
82
const ChatHelper = lazy(() => import('../components/chat/helper/ChatHelper'))
82
const ChatHelper = lazy(() => import('../components/chat/helper/ChatHelper'))
83
const SigninPage = lazy(() => import('../pages/auth/SigninPage'))
83
const SigninPage = lazy(() => import('../pages/auth/SigninPage'))
-
 
84
const ImpersonatePage = lazy(() =>
-
 
85
  import('../pages/impersonate/InpersonatePage')
-
 
86
)
Línea 84... Línea 87...
84
 
87
 
85
const AppRouter = () => {
88
const AppRouter = () => {
86
  const { theme_id, isAuth, loading } = useSelector(({ auth }) => auth)
89
  const { theme_id, isAuth, loading } = useSelector(({ auth }) => auth)
Línea 302... Línea 305...
302
          </PrivateRoute>
305
          </PrivateRoute>
303
          <PrivateRoute exact path="/my-coach" isAuthenticated={isAuth}>
306
          <PrivateRoute exact path="/my-coach" isAuthenticated={isAuth}>
304
            <MyCoachPage />
307
            <MyCoachPage />
305
          </PrivateRoute>
308
          </PrivateRoute>
Línea -... Línea 309...
-
 
309
 
-
 
310
          <PrivateRoute
-
 
311
            exact
-
 
312
            path="/signin/impersonate"
-
 
313
            isAuthenticated={isAuth}
-
 
314
          >
-
 
315
            <ImpersonatePage />
-
 
316
          </PrivateRoute>
306
 
317
 
307
          {/* Authorization routes */}
318
          {/* Authorization routes */}
308
          <AuthRoute path="/" isAuthenticated={isAuth}>
319
          <AuthRoute path="/" isAuthenticated={isAuth}>
309
            <SigninPage />
320
            <SigninPage />
310
          </AuthRoute>
321
          </AuthRoute>