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 ChatHelper from '../components/chat/helper/ChatHelper'
|
- |
|
Línea 13... |
Línea 12... |
13 |
|
12 |
|
14 |
const Header = lazy(() => import('../components/navbar/Header'))
|
13 |
const Header = lazy(() => import('../components/navbar/Header'))
|
15 |
const Auth = lazy(() => import('../pages/auth/Auth'))
|
14 |
const Auth = lazy(() => import('../pages/auth/Auth'))
|
16 |
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
|
15 |
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
|
Línea 79... |
Línea 78... |
79 |
const PostViewPage = lazy(() => import('../pages/posts/PostViewPage'))
|
78 |
const PostViewPage = lazy(() => import('../pages/posts/PostViewPage'))
|
80 |
const MyCoachPage = lazy(() => import('../pages/my-coach/MyCoachPage'))
|
79 |
const MyCoachPage = lazy(() => import('../pages/my-coach/MyCoachPage'))
|
81 |
const MyCoachViewPage = lazy(() => import('../pages/my-coach/MyCoachViewPage'))
|
80 |
const MyCoachViewPage = lazy(() => import('../pages/my-coach/MyCoachViewPage'))
|
82 |
const JobViewPage = lazy(() => import('../pages/jobs/JobView'))
|
81 |
const JobViewPage = lazy(() => import('../pages/jobs/JobView'))
|
83 |
const CalendarPage = lazy(() => import('../pages/calendar/CalendarPage'))
|
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 { theme_id, isAuth, loading } = useSelector(({ auth }) => auth)
|
86 |
const { theme_id, isAuth, loading } = useSelector(({ auth }) => auth)
|
Línea 325... |
Línea 325... |
325 |
</PublicRoute>
|
325 |
</PublicRoute>
|
326 |
</Switch>
|
326 |
</Switch>
|
327 |
</Suspense>
|
327 |
</Suspense>
|
Línea 328... |
Línea 328... |
328 |
|
328 |
|
- |
|
329 |
<NotificationAlert />
|
329 |
<NotificationAlert />
|
330 |
|
330 |
{isAuth && <ChatHelper />}
|
331 |
<Suspense fallback={null}>{isAuth ? <ChatHelper /> : null}</Suspense>
|
331 |
</Router>
|
332 |
</Router>
|
332 |
)
|
333 |
)
|
Línea 333... |
Línea 334... |
333 |
}
|
334 |
}
|