Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5739 Rev 5741
Línea 24... Línea 24...
24
      type: 'v',
24
      type: 'v',
25
      icon: <VolunteerActivismIcon style={{ color: '#7FC15E' }} />,
25
      icon: <VolunteerActivismIcon style={{ color: '#7FC15E' }} />,
26
    },
26
    },
27
  ]
27
  ]
Línea 28... Línea 28...
28
 
28
 
-
 
29
  const onHover = debounce(() => setShowReactions(true), 500)
-
 
30
 
Línea 29... Línea 31...
29
  const onHover = debounce(() => setShowReactions(true), 1000)
31
  const onUnhover = debounce(() => setShowReactions(false), 500)
30
 
32
 
31
  const handleClick = (reaction) => {
33
  const handleClick = (reaction) => {
32
    setSettedReaction(reaction)
34
    setSettedReaction(reaction)
Línea 42... Línea 44...
42
  return (
44
  return (
43
    <button
45
    <button
44
      type="button"
46
      type="button"
45
      className="reaction-btn"
47
      className="reaction-btn"
46
      onMouseEnter={onHover}
48
      onMouseEnter={onHover}
-
 
49
      onMouseLeave={onUnhover}
47
      ref={rectionBtn}
50
      ref={rectionBtn}
48
    >
51
    >
49
      {reactions.map((reaction) =>
52
      {reactions.map((reaction) =>
50
        reaction.type === settedReaction ? reaction.icon : null
53
        reaction.type === settedReaction ? reaction.icon : null
51
      )}
54
      )}