Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6718 | Rev 6724 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6718 Rev 6719
Línea 4... Línea 4...
4
import styled from 'styled-components'
4
import styled from 'styled-components'
5
import { getLanguage } from '../../redux/intl/intl.action'
5
import { getLanguage } from '../../redux/intl/intl.action'
Línea 6... Línea 6...
6
 
6
 
7
import PublicRoute from './PublicRoute'
7
import PublicRoute from './PublicRoute'
8
import PrivateRoute from './PrivateRoute'
-
 
9
 
8
import PrivateRoute from './PrivateRoute'
10
import Spinner from '../components/UI/Spinner'
9
import Spinner from '../components/UI/Spinner'
Línea 11... Línea 10...
11
import NotificationAlert from '../components/UI/notification/NotificationAlert'
10
import NotificationAlert from '../components/UI/notification/NotificationAlert'
12
 
11
 
13
const Header = lazy(() => import('../components/navbar/Header'))
12
const Header = lazy(() => import('../components/navbar/Header'))
14
const Auth = lazy(() => import('../pages/auth/Auth'))
13
const Auth = lazy(() => import('../pages/auth/Auth'))
15
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
14
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
-
 
15
const MyConnectionsPage = lazy(() =>
-
 
16
  import('../pages/connections/MyConnectionsPage')
-
 
17
)
16
const MyConnectionsPage = lazy(() =>
18
const InvitationsSendPage = lazy(() =>
Línea 17... Línea 19...
17
  import('../pages/my-connections/MyConnectionsPage')
19
  import('../pages/connections/InvitationsSend')
18
)
20
)
19
 
21
 
Línea 58... Línea 60...
58
            path="/connection/my-connections"
60
            path="/connection/my-connections"
59
            isAuthenticated={isAuth}
61
            isAuthenticated={isAuth}
60
          >
62
          >
61
            <MyConnectionsPage />
63
            <MyConnectionsPage />
62
          </PrivateRoute>
64
          </PrivateRoute>
-
 
65
          <PrivateRoute
-
 
66
            exact
-
 
67
            path="/connection/invitations-sent"
-
 
68
            isAuthenticated={isAuth}
-
 
69
          >
-
 
70
            <InvitationsSendPage />
-
 
71
          </PrivateRoute>
Línea 63... Línea 72...
63
 
72
 
64
          <PublicRoute path="/" isAuthenticated={isAuth}>
73
          <PublicRoute path="/" isAuthenticated={isAuth}>
65
            <Auth />
74
            <Auth />
66
          </PublicRoute>
75
          </PublicRoute>