Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3314 Rev 3315
Línea 18... Línea 18...
18
  const dispatch = useDispatch()
18
  const dispatch = useDispatch()
19
  const menuOptions = useRef(null)
19
  const menuOptions = useRef(null)
Línea 20... Línea 20...
20
 
20
 
Línea -... Línea 21...
-
 
21
  const handleConfirmModalShow = () => setConfirmModalShow(!confirmModalShow)
-
 
22
 
-
 
23
  const handleAccept = () => {
-
 
24
    deleteAllNotifications()
-
 
25
    handleConfirmModalShow()
21
  const handleConfirmModalShow = () => setConfirmModalShow(!confirmModalShow)
26
  }
22
 
27
  
23
  const handleNotifications = async () => {
28
  const handleNotifications = async () => {
24
    try {
29
    try {
25
      const _notifications = await axios.get('/notifications')
30
      const _notifications = await axios.get('/notifications')
Línea 145... Línea 150...
145
        </div>
150
        </div>
146
      </section >
151
      </section >
147
      <ConfirmModal
152
      <ConfirmModal
148
        show={confirmModalShow}
153
        show={confirmModalShow}
149
        onClose={handleConfirmModalShow}
154
        onClose={handleConfirmModalShow}
150
        onAccept={deleteAllNotifications}
155
        onAccept={handleAccept}
151
        acceptLabel='Aceptar'
156
        acceptLabel='Aceptar'
152
      />
157
      />
153
    </>
158
    </>
154
  )
159
  )
155
}
160
}