Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7230 Rev 7231
Línea 42... Línea 42...
42
  link_save_reaction = '',
42
  link_save_reaction = '',
43
  link_add_comment = '',
43
  link_add_comment = '',
44
  onEdit = () => {},
44
  onEdit = () => {},
45
  onDelete = () => {},
45
  onDelete = () => {},
46
  updateComments = () => {},
46
  updateComments = () => {},
-
 
47
  updateReactions = () => {},
47
}) => {
48
}) => {
48
  const [comments, setComments] = useState(defaultComments)
49
  const [comments, setComments] = useState(defaultComments)
49
  const [totalComments, setTotalComments] = useState(total_comments)
50
  const [totalComments, setTotalComments] = useState(total_comments)
50
  const [totalReactions, setTotalReactions] = useState(total_reactions)
51
  const [totalReactions, setTotalReactions] = useState(total_reactions)
51
  const labels = useSelector(({ intl }) => intl.labels)
52
  const labels = useSelector(({ intl }) => intl.labels)
Línea 172... Línea 173...
172
              onChange={({
173
              onChange={({
173
                total_reactions_answer,
174
                total_reactions_answer,
174
                total_reactions_question,
175
                total_reactions_question,
175
              }) => {
176
              }) => {
176
                setTotalReactions(total_reactions_answer)
177
                setTotalReactions(total_reactions_answer)
-
 
178
                updateReactions(total_reactions_question)
177
              }}
179
              }}
178
              withLabel
180
              withLabel
179
            />
181
            />
180
          )}
182
          )}
181
        </AnswerActions>
183
        </AnswerActions>