Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4629 Rev 4630
Línea 11... Línea 11...
11
import NotificationsIcon from '@mui/icons-material/Notifications'
11
import NotificationsIcon from '@mui/icons-material/Notifications'
12
import UserOptions from './UserOptions'
12
import UserOptions from './UserOptions'
Línea 13... Línea 13...
13
 
13
 
14
import './Header.scss'
14
import './Header.scss'
-
 
15
import { useForm } from 'react-hook-form';
Línea 15... Línea 16...
15
import { useForm } from 'react-hook-form';
16
import NotificationsOption from './NotificationsOption';
16
 
17
 
17
const ICON_OPTIONS = [
18
const ICON_OPTIONS = [
18
  HomeIcon,
19
  HomeIcon,
Línea 29... Línea 30...
29
  fullName,
30
  fullName,
30
  linkAdmin,
31
  linkAdmin,
31
  linkImpersonate,
32
  linkImpersonate,
32
  //companyVars,
33
  //companyVars,
33
  //isChatPage,
34
  //isChatPage,
34
  //routeCheckSession,
35
  routeCheckSession,
35
}) => {
36
}) => {
36
  const [menuItems, setMenuItems] = useState(menu || [])
37
  const [menuItems, setMenuItems] = useState(menu || [])
37
  const [aditionalItems, setAditionalItems] = useState([])
38
  const [aditionalItems, setAditionalItems] = useState([])
38
  const [userImage, setUserImage] = useState(image)
39
  const [userImage, setUserImage] = useState(image)
39
  const [showMobileSearch, setShowMobileSearch] = useState(false)
40
  const [showMobileSearch, setShowMobileSearch] = useState(false)
Línea 123... Línea 124...
123
                    url={item.href}
124
                    url={item.href}
124
                    childs={item.childs}
125
                    childs={item.childs}
125
                  />
126
                  />
126
                )
127
                )
127
              })}
128
              })}
128
              <HeaderOptions
129
              <NotificationsOption
129
                Icon={NotificationsIcon}
130
                Icon={NotificationsIcon}
130
                title='Notificaciones'
131
                title='Notificaciones'
131
                url='/notifications'
132
                url='/notifications'
-
 
133
                sessionLink={routeCheckSession}
132
              />
134
              />
133
              <HeaderOptions
135
              <HeaderOptions
134
                Icon={ChatIcon}
136
                Icon={ChatIcon}
135
                title='Comunicación'
137
                title='Comunicación'
136
                url=''
138
                url=''