Línea 1... |
Línea 1... |
1 |
import React, { lazy, Suspense, useEffect } from 'react'
|
1 |
import React, { lazy, Suspense, useEffect } from 'react'
|
2 |
import { useDispatch, useSelector } from 'react-redux'
|
2 |
import { useDispatch, useSelector } from 'react-redux'
|
3 |
import {
|
- |
|
4 |
Redirect,
|
- |
|
5 |
Route,
|
- |
|
6 |
BrowserRouter as Router,
|
3 |
import { Route, BrowserRouter as Router, Switch } from 'react-router-dom'
|
7 |
Switch,
|
- |
|
8 |
} from 'react-router-dom'
|
- |
|
9 |
import { getLanguage } from '../../redux/intl/intl.action'
|
4 |
import { getLanguage } from '../../redux/intl/intl.action'
|
10 |
import { getPermissions } from '../redux/auth/auth.actions'
|
5 |
import { getPermissions } from '../redux/auth/auth.actions'
|
Línea 11... |
Línea 6... |
11 |
|
6 |
|
12 |
import AuthRoute from './AuthRoute'
|
7 |
import AuthRoute from './AuthRoute'
|
Línea 84... |
Línea 79... |
84 |
const MyCoachViewPage = lazy(() => import('../pages/my-coach/MyCoachViewPage'))
|
79 |
const MyCoachViewPage = lazy(() => import('../pages/my-coach/MyCoachViewPage'))
|
85 |
const JobViewPage = lazy(() => import('../pages/jobs/JobView'))
|
80 |
const JobViewPage = lazy(() => import('../pages/jobs/JobView'))
|
86 |
const CalendarPage = lazy(() => import('../pages/calendar/CalendarPage'))
|
81 |
const CalendarPage = lazy(() => import('../pages/calendar/CalendarPage'))
|
87 |
const ChatHelper = lazy(() => import('../components/chat/helper/ChatHelper'))
|
82 |
const ChatHelper = lazy(() => import('../components/chat/helper/ChatHelper'))
|
88 |
const SigninPage = lazy(() => import('../pages/auth/SigninPage'))
|
83 |
const SigninPage = lazy(() => import('../pages/auth/SigninPage'))
|
89 |
const SignupPage = lazy(() => import('../pages/auth/SignupPage'))
|
- |
|
90 |
const ResetPasswordPage = lazy(() => import('../pages/auth/ResetPasswordPage'))
|
- |
|
91 |
const ForgotPasswordPage = lazy(() =>
|
- |
|
92 |
import('../pages/auth/ForgotPasswordPage')
|
- |
|
93 |
)
|
- |
|
Línea 94... |
Línea 84... |
94 |
|
84 |
|
95 |
const AppRouter = () => {
|
85 |
const AppRouter = () => {
|
96 |
const { theme_id, isAuth, loading } = useSelector(({ auth }) => auth)
|
86 |
const { theme_id, isAuth, loading } = useSelector(({ auth }) => auth)
|