Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5173 Rev 5399
Línea 3... Línea 3...
3
import NavLinks from './nav-links/NavLinks'
3
import NavLinks from './nav-links/NavLinks'
4
import ChatHelper from '../../../chat/chatHelper/ChatHelper'
4
import ChatHelper from '../../../chat/chatHelper/ChatHelper'
5
import UserImageDropdown from './user-dropdown/UserImageDropdown'
5
import UserImageDropdown from './user-dropdown/UserImageDropdown'
6
import SearchInput from './searchbox/SearchInput'
6
import SearchInput from './searchbox/SearchInput'
7
import ResponsiveNavbar from './responsive-navbar/ResponsiveNavbar'
7
import ResponsiveNavbar from './responsive-navbar/ResponsiveNavbar'
-
 
8
import { useDispatch } from 'react-redux'
-
 
9
import { setIntlLabels } from '../../../redux/intl/intl.action'
Línea 8... Línea 10...
8
 
10
 
9
const Navbar = ({ navbarVars, LABELS }) => {
11
const Navbar = ({ navbarVars, labels }) => {
10
  const {
12
  const {
11
    image,
13
    image,
12
    fullName,
14
    fullName,
13
    companyVars,
15
    companyVars,
Línea 16... Línea 18...
16
    linkImpersonate,
18
    linkImpersonate,
17
    routeCheckSession,
19
    routeCheckSession,
18
    logoForNavbar,
20
    logoForNavbar,
19
    menu: menuProps
21
    menu: menuProps
20
  } = navbarVars
22
  } = navbarVars
21
 
-
 
22
  const [navbarOpen, setNavbarOpen] = useState(false)
23
  const [navbarOpen, setNavbarOpen] = useState(false)
23
  const [sessionImage, setSessionImage] = useState(null)
24
  const [sessionImage, setSessionImage] = useState(null)
24
  const [loading, setLoading] = useState(false)
25
  const [loading, setLoading] = useState(false)
-
 
26
  const dispatch = useDispatch()
-
 
27
 
-
 
28
  useEffect(() => {
-
 
29
    dispatch(setIntlLabels(LABELS))
-
 
30
  }, [])
Línea 25... Línea 31...
25
 
31
 
26
  useEffect(() => {
32
  useEffect(() => {
27
    let timer
33
    let timer
28
    if (!loading) {
34
    if (!loading) {
Línea 75... Línea 81...
75
        image={image}
81
        image={image}
76
        fullName={fullName}
82
        fullName={fullName}
77
        linkAdmin={linkAdmin}
83
        linkAdmin={linkAdmin}
78
        linkImpersonate={linkImpersonate}
84
        linkImpersonate={linkImpersonate}
79
        sessionImage={sessionImage}
85
        sessionImage={sessionImage}
80
        LABELS={LABELS}
-
 
81
      />
86
      />
82
      {window.innerWidth < 1000 && !isChatPage && <ChatHelper />}
87
      {window.innerWidth < 1000 && !isChatPage && <ChatHelper />}
83
    </>
88
    </>
84
  )
89
  )
85
}
90
}