Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2159 Rev 2160
Línea 49... Línea 49...
49
  }) => {
49
  }) => {
50
    const [isHover, setIsHover] = useState(false)
50
    const [isHover, setIsHover] = useState(false)
51
    const debounceHover = useDebounce(isHover, 500)
51
    const debounceHover = useDebounce(isHover, 500)
52
    const dispatch = useDispatch()
52
    const dispatch = useDispatch()
Línea 53... Línea 53...
53
 
53
 
54
    const currentReaction = useMemo(
54
    const currentReaction = useMemo(() => {
-
 
55
      const reaction = REACTIONS.find((r) => r.type === currentReactionType)
55
      () => REACTIONS.find((r) => r.type === currentReactionType),
56
      console.log(reaction)
56
      [currentReactionType]
57
      console.log(currentReactionType)
-
 
58
      return reaction
57
    )
59
    }, [currentReactionType])
Línea 58... Línea 60...
58
    const Icon = currentReaction ? currentReaction.icon : REACTIONS[0].icon
60
    const Icon = currentReaction ? currentReaction.icon : REACTIONS[0].icon
59
 
61
 
60
    const saveReaction = useCallback(
62
    const saveReaction = useCallback(