Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2162 Rev 2241
Línea 92... Línea 92...
92
    }, [])
92
    }, [])
Línea 93... Línea 93...
93
 
93
 
94
    return (
94
    return (
95
      <Component
95
      <Component
96
        onClick={() => (currentReaction ? deleteReaction() : saveReaction())}
96
        onClick={() => (currentReaction ? deleteReaction() : saveReaction())}
97
        onMouseEnter={() => setIsHover(true)}
97
        onMouseOver={() => setIsHover(true)}
98
        onMouseLeave={() => setIsHover(false)}
98
        onMouseOut={() => setIsHover(false)}
99
      >
99
      >
100
        {currentReaction ? (
100
        {currentReaction ? (
101
          <Icon style={{ color: currentReaction.color }} />
101
          <Icon style={{ color: currentReaction.color }} />
102
        ) : (
102
        ) : (
103
          <Icon />
103
          <Icon />
Línea 104... Línea 104...
104
        )}
104
        )}
Línea 105... Línea 105...
105
 
105
 
-
 
106
        {currentReaction ? currentReaction.label : 'Reaccionar'}
106
        {currentReaction ? currentReaction.label : 'Reaccionar'}
107
 
-
 
108
        <ReactionsBox
-
 
109
          sx={{
107
 
110
            transform: debounceHover ? 'scale(1)' : 'scale(0)',
108
        <ReactionsBox
111
            transformOrigin: 'center'
109
          sx={{ transform: debounceHover ? 'scale(1)' : 'scale(0)' }}
112
          }}
110
        >
113
        >
111
          {REACTIONS.map(({ type, label, icon: Icon, color }) => (
114
          {REACTIONS.map(({ type, label, icon: Icon, color }) => (