Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7229 Rev 7230
Línea 45... Línea 45...
45
  onDelete = () => {},
45
  onDelete = () => {},
46
  updateComments = () => {},
46
  updateComments = () => {},
47
}) => {
47
}) => {
48
  const [comments, setComments] = useState(defaultComments)
48
  const [comments, setComments] = useState(defaultComments)
49
  const [totalComments, setTotalComments] = useState(total_comments)
49
  const [totalComments, setTotalComments] = useState(total_comments)
-
 
50
  const [totalReactions, setTotalReactions] = useState(total_reactions)
50
  const labels = useSelector(({ intl }) => intl.labels)
51
  const labels = useSelector(({ intl }) => intl.labels)
51
  const dispatch = useDispatch()
52
  const dispatch = useDispatch()
Línea 52... Línea 53...
52
 
53
 
53
  const addComment = ({ comment }) => {
54
  const addComment = ({ comment }) => {
Línea 135... Línea 136...
135
            <p>{user_name}</p>
136
            <p>{user_name}</p>
136
          </QuestionUserInfo>
137
          </QuestionUserInfo>
Línea 137... Línea 138...
137
 
138
 
138
          <QuestionStats className="mb-2">
139
          <QuestionStats className="mb-2">
139
            <span>{`${labels.published} ${time_elapsed}`}</span>
140
            <span>{`${labels.published} ${time_elapsed}`}</span>
140
            <span>{`${total_reactions} ${labels.reactions}`}</span>
141
            <span>{`${totalReactions} ${labels.reactions}`}</span>
141
            <span>{`${totalComments} ${labels.comments}`}</span>
142
            <span>{`${totalComments} ${labels.comments}`}</span>
142
          </QuestionStats>
143
          </QuestionStats>
143
        </QuestionDetails>
144
        </QuestionDetails>
Línea 166... Línea 167...
166
            <ReactionsButton
167
            <ReactionsButton
167
              className="btn feed__share-option"
168
              className="btn feed__share-option"
168
              currentReaction={reaction}
169
              currentReaction={reaction}
169
              saveUrl={link_save_reaction}
170
              saveUrl={link_save_reaction}
170
              deleteUrl={link_reaction_delete}
171
              deleteUrl={link_reaction_delete}
-
 
172
              onChange={({
-
 
173
                total_reactions_answer,
-
 
174
                total_reactions_question,
-
 
175
              }) => {
-
 
176
                setTotalReactions(total_reactions_answer)
-
 
177
              }}
171
              withLabel
178
              withLabel
172
            />
179
            />
173
          )}
180
          )}
174
        </AnswerActions>
181
        </AnswerActions>
175
        <CommentForm onSubmit={addComment} />
182
        <CommentForm onSubmit={addComment} />