| Línea 7... |
Línea 7... |
| 7 |
import PublicRoute from './PublicRoute'
|
7 |
import PublicRoute from './PublicRoute'
|
| 8 |
import PrivateRoute from './PrivateRoute'
|
8 |
import PrivateRoute from './PrivateRoute'
|
| 9 |
import Spinner from '../components/UI/Spinner'
|
9 |
import Spinner from '../components/UI/Spinner'
|
| 10 |
import NotificationAlert from '../components/UI/notification/NotificationAlert'
|
10 |
import NotificationAlert from '../components/UI/notification/NotificationAlert'
|
| 11 |
import LoaderContainer from '../components/UI/LoaderContainer'
|
11 |
import LoaderContainer from '../components/UI/LoaderContainer'
|
| 12 |
import CalendarPage from '../pages/calendar/CalendarPage'
|
- |
|
| 13 |
import ChatHelper from '../components/chat/helper/ChatHelper'
|
- |
|
| Línea 14... |
Línea 12... |
| 14 |
|
12 |
|
| 15 |
const Header = lazy(() => import('../components/navbar/Header'))
|
13 |
const Header = lazy(() => import('../components/navbar/Header'))
|
| 16 |
const Auth = lazy(() => import('../pages/auth/Auth'))
|
14 |
const Auth = lazy(() => import('../pages/auth/Auth'))
|
| 17 |
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
|
15 |
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
|
| Línea 79... |
Línea 77... |
| 79 |
)
|
77 |
)
|
| 80 |
const PostViewPage = lazy(() => import('../pages/posts/PostViewPage'))
|
78 |
const PostViewPage = lazy(() => import('../pages/posts/PostViewPage'))
|
| 81 |
const MyCoachPage = lazy(() => import('../pages/my-coach/MyCoachPage'))
|
79 |
const MyCoachPage = lazy(() => import('../pages/my-coach/MyCoachPage'))
|
| 82 |
const MyCoachViewPage = lazy(() => import('../pages/my-coach/MyCoachViewPage'))
|
80 |
const MyCoachViewPage = lazy(() => import('../pages/my-coach/MyCoachViewPage'))
|
| 83 |
const JobViewPage = lazy(() => import('../pages/jobs/JobView'))
|
81 |
const JobViewPage = lazy(() => import('../pages/jobs/JobView'))
|
| - |
|
82 |
const CalendarPage = lazy(() => import('../pages/calendar/CalendarPage'))
|
| - |
|
83 |
const ChatHelper = lazy(() => import('../components/chat/helper/ChatHelper'))
|
| Línea 84... |
Línea 84... |
| 84 |
|
84 |
|
| 85 |
const AppRouter = () => {
|
85 |
const AppRouter = () => {
|
| 86 |
const { isAuth, theme_id } = useSelector(({ auth }) => auth)
|
86 |
const { is_logged_in: isAuth, theme_id } = useSelector(({ auth }) => auth)
|
| Línea 87... |
Línea 87... |
| 87 |
const dispatch = useDispatch()
|
87 |
const dispatch = useDispatch()
|
| 88 |
|
88 |
|
| 89 |
useEffect(() => {
|
89 |
useEffect(() => {
|