Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2152 Rev 2154
Línea 57... Línea 57...
57
      })
57
      })
58
    }, [])
58
    }, [])
Línea 59... Línea 59...
59
 
59
 
60
    return (
60
    return (
61
      <Component
-
 
62
        icon={
-
 
63
          currentReaction ? (
-
 
64
            <Icon style={{ color: currentReaction.color }} />
-
 
65
          ) : (
-
 
66
            <Icon />
-
 
67
          )
-
 
68
        }
61
      <Component
69
        onClick={() =>
62
        onClick={() =>
70
          currentReaction ? deleteReaction() : saveReaction(REACTIONS[0].type)
63
          currentReaction ? deleteReaction() : saveReaction(REACTIONS[0].type)
71
        }
-
 
72
        label={currentReaction ? currentReaction.label : 'Reaccionar'}
64
        }
-
 
65
      >
-
 
66
        {currentReaction ? (
-
 
67
          <Icon style={{ color: currentReaction.color }} />
-
 
68
        ) : (
-
 
69
          <Icon />
-
 
70
        )}
-
 
71
 
-
 
72
        {currentReaction ? currentReaction.label : 'Reaccionar'}
73
      >
73
 
74
        <div className='reactions'>
74
        <div className='reactions'>
75
          {REACTIONS.map(({ type, label, icon: Icon, color }) => (
75
          {REACTIONS.map(({ type, label, icon: Icon, color }) => (
76
            <button
76
            <button
77
              key={type}
77
              key={type}