Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 5 Rev 1901
Línea 1... Línea 1...
1
import React, { lazy } from 'react'
1
import React, { lazy } from 'react'
2
import { useSelector } from 'react-redux'
2
import { useSelector } from 'react-redux'
Línea 3... Línea 3...
3
 
3
 
4
// const ProfileView = lazy(() => import('../../layouts/profile-edit/ProfileView'))
4
// const ProfileView = lazy(() => import('../../layouts/profile-edit/ProfileView'))
5
const ProfileViewLinkedIn = lazy(() =>
5
const ProfileEditLayout = lazy(() =>
6
  import('../../layouts/profile-edit/ProfileViewLinkedIn')
6
  import('@app/layouts/profile-edit/ProfileViewLinkedIn')
Línea 7... Línea 7...
7
)
7
)
8
 
8
 
Línea 9... Línea 9...
9
const ProfileViewPage = () => {
9
const ProfileViewPage = () => {
10
  const { theme_id } = useSelector(({ auth }) => auth)
10
  const { theme_id } = useSelector(({ auth }) => auth)
11
 
11
 
12
  switch (theme_id) {
12
  switch (theme_id) {
13
    /* case 1:
13
    /* case 1:
-
 
14
      return <ProfileView />
14
      return <ProfileView />
15
    case 2:
15
    case 2:
16
      return <ProfileViewLinkedIn /> */
16
      return <ProfileViewLinkedIn /> */
17
 
17
    default:
18
    default:
Línea 18... Línea 19...
18
      return <ProfileViewLinkedIn />
19
      return <ProfileEditLayout />