Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5742 Rev 5743
Línea 26... Línea 26...
26
    },
26
    },
27
  ]
27
  ]
Línea 28... Línea 28...
28
 
28
 
Línea 29... Línea 29...
29
  const onHover = debounce(() => setShowReactions(true), 500)
29
  const onHover = debounce(() => setShowReactions(true), 500)
Línea 30... Línea 30...
30
 
30
 
31
  const onUnhover = debounce((e) => console.log(e.relatedTarget), 500)
31
  const onUnhover = debounce((e) => setShowReactions(false), 500)
32
 
32
 
33
  const handleClick = (reaction) => {
33
  const handleClick = (reaction) => {
Línea 43... Línea 43...
43
 
43
 
44
  return (
44
  return (
45
    <button
45
    <button
46
      type="button"
46
      type="button"
47
      className="reaction-btn"
47
      className="reaction-btn"
48
      onMouseEnter={onHover}
48
      onMouseOver={onHover}
49
      onMouseLeave={onUnhover}
49
      onMouseOut={onUnhover}
50
      ref={rectionBtn}
50
      ref={rectionBtn}
51
    >
51
    >
52
      {reactions.map((reaction) =>
52
      {reactions.map((reaction) =>
53
        reaction.type === settedReaction ? reaction.icon : null
53
        reaction.type === settedReaction ? reaction.icon : null