| Línea 8... |
Línea 8... |
| 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 NotificationsPage from '../pages/notifications/NotificationsPage'
|
12 |
import NotificationsPage from '../pages/notifications/NotificationsPage'
|
| - |
|
13 |
import SearchPage from '../pages/search/SearchPage'
|
| Línea 13... |
Línea 14... |
| 13 |
|
14 |
|
| 14 |
const Header = lazy(() => import('../components/navbar/Header'))
|
15 |
const Header = lazy(() => import('../components/navbar/Header'))
|
| 15 |
const Auth = lazy(() => import('../pages/auth/Auth'))
|
16 |
const Auth = lazy(() => import('../pages/auth/Auth'))
|
| 16 |
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
|
17 |
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
|
| Línea 256... |
Línea 257... |
| 256 |
</PrivateRoute>
|
257 |
</PrivateRoute>
|
| 257 |
<PrivateRoute path="/notifications" isAuthenticated={isAuth}>
|
258 |
<PrivateRoute path="/notifications" isAuthenticated={isAuth}>
|
| 258 |
<NotificationsPage />
|
259 |
<NotificationsPage />
|
| 259 |
</PrivateRoute>
|
260 |
</PrivateRoute>
|
| 260 |
<PrivateRoute path="/search" isAuthenticated={isAuth}>
|
261 |
<PrivateRoute path="/search" isAuthenticated={isAuth}>
|
| 261 |
<h1>Search</h1>
|
262 |
<SearchPage />
|
| 262 |
</PrivateRoute>
|
263 |
</PrivateRoute>
|
| Línea 263... |
Línea 264... |
| 263 |
|
264 |
|
| 264 |
<PublicRoute path="/" isAuthenticated={isAuth}>
|
265 |
<PublicRoute path="/" isAuthenticated={isAuth}>
|
| 265 |
<Auth />
|
266 |
<Auth />
|