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 ChatPage from '../pages/chat/ChatPage'
|
- |
|
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 59... |
Línea 58... |
59 |
const ProfileViewPage = lazy(() => import('../pages/profiles/ProfileViewPage'))
|
58 |
const ProfileViewPage = lazy(() => import('../pages/profiles/ProfileViewPage'))
|
60 |
const ProfileEditPage = lazy(() => import('../pages/profiles/ProfileEditPage'))
|
59 |
const ProfileEditPage = lazy(() => import('../pages/profiles/ProfileEditPage'))
|
61 |
const CompanyViewPage = lazy(() => import('../pages/company/CompanyViewPage'))
|
60 |
const CompanyViewPage = lazy(() => import('../pages/company/CompanyViewPage'))
|
62 |
const GroupViewPage = lazy(() => import('../pages/groups/GroupViewPage'))
|
61 |
const GroupViewPage = lazy(() => import('../pages/groups/GroupViewPage'))
|
63 |
const GroupEditPage = lazy(() => import('../pages/groups/GroupEditPage'))
|
62 |
const GroupEditPage = lazy(() => import('../pages/groups/GroupEditPage'))
|
- |
|
63 |
const ChatPage = lazy(() => import('../pages/chat/ChatPage'))
|
Línea 64... |
Línea 64... |
64 |
|
64 |
|
65 |
const AppRouter = () => {
|
65 |
const AppRouter = () => {
|
66 |
const { isAuth, theme_id } = useSelector(({ auth }) => auth)
|
66 |
const { isAuth, theme_id } = useSelector(({ auth }) => auth)
|