Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1657 Rev 1658
Línea 41... Línea 41...
41
  const [showConfirmModal, setShowConfirmModal] = useState(false)
41
  const [showConfirmModal, setShowConfirmModal] = useState(false)
42
  const labels = useSelector(({ intl }) => intl.labels)
42
  const labels = useSelector(({ intl }) => intl.labels)
43
  const dispatch = useDispatch()
43
  const dispatch = useDispatch()
Línea 44... Línea 44...
44
 
44
 
45
  const actions = useMemo(() => {
45
  const actions = useMemo(() => {
-
 
46
    const options = []
46
    const actions = []
47
    if (link_delete) {
-
 
48
      options.concat({ label: 'Borrar', action: toggleModal })
Línea 47... Línea 49...
47
    if (link_delete) actions.push({ label: 'Borrar', action: toggleModal })
49
    }
48
 
50
 
-
 
51
    if (link_abuse_report) {
Línea 49... Línea 52...
49
    if (link_abuse_report)
52
      options.concat({ label: 'Reportar', action: reportComment })
50
      actions.push({ label: 'Reportar', action: reportComment })
53
    }
Línea 51... Línea 54...
51
 
54
 
Línea 52... Línea 55...
52
    return actions
55
    return options
53
  }, [link_delete])
56
  }, [link_delete, link_abuse_report])