Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 7226 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 7226 Rev 7231
Línea 183... Línea 183...
183
      ...question,
183
      ...question,
184
      comments: total,
184
      comments: total,
185
    })
185
    })
186
  }
186
  }
Línea -... Línea 187...
-
 
187
 
-
 
188
  const updateTotalReactions = (total) => {
-
 
189
    setQuestion({
-
 
190
      ...question,
-
 
191
      reactions: total,
-
 
192
    })
-
 
193
  }
187
 
194
 
188
  useEffect(() => {
195
  useEffect(() => {
189
    getQuestion()
196
    getQuestion()
Línea 190... Línea 197...
190
  }, [])
197
  }, [])
Línea 240... Línea 247...
240
                key={answer.unique}
247
                key={answer.unique}
241
                {...answer}
248
                {...answer}
242
                onEdit={editAnswer}
249
                onEdit={editAnswer}
243
                onDelete={deleteAnswer}
250
                onDelete={deleteAnswer}
244
                updateComments={updateTotalComments}
251
                updateComments={updateTotalComments}
-
 
252
                updateReactions={updateTotalReactions}
245
              />
253
              />
246
            ))}
254
            ))}
247
          </StyledSection>
255
          </StyledSection>
248
        </Row>
256
        </Row>
249
      </Container>
257
      </Container>