Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 389 Rev 527
Línea 19... Línea 19...
19
import { CommentForm, CommentsList } from '../feed/CommentSection'
19
import { CommentForm, CommentsList } from '../feed/CommentSection'
20
import ReactionsButton from '../UI/buttons/ReactionsButton'
20
import ReactionsButton from '../UI/buttons/ReactionsButton'
Línea 21... Línea 21...
21
 
21
 
22
const AnswerActions = styled(QuestionActions)`
22
const AnswerActions = styled(QuestionActions)`
23
  margin-bottom: 0.5rem;
-
 
24
  
23
  margin-bottom: 0.5rem;
Línea 25... Línea 24...
25
`
24
`
26
 
25
 
27
const AnswerCard = ({
26
const AnswerCard = ({
Línea 145... Línea 144...
145
          </QuestionStats>
144
          </QuestionStats>
146
        </QuestionDetails>
145
        </QuestionDetails>
147
        {text && parse(text)}
146
        {text && parse(text)}
Línea 148... Línea 147...
148
 
147
 
-
 
148
        <AnswerActions>
-
 
149
          {link_save_reaction && (
-
 
150
            <ReactionsButton
-
 
151
              className="btn feed__share-option"
-
 
152
              currentReaction={reaction}
-
 
153
              saveUrl={link_save_reaction}
-
 
154
              deleteUrl={link_reaction_delete}
-
 
155
              onChange={(res) => {
-
 
156
                setTotalReactions(res.total_reactions_answer)
-
 
157
                updateReactions(res.total_reactions_question)
-
 
158
              }}
-
 
159
              withLabel
-
 
160
            />
149
        <AnswerActions>
161
          )}
150
          {link_edit && (
162
          {link_edit && (
151
            <button
163
            <button
152
              className="btn feed__share-option"
164
              className="btn feed__share-option"
153
              onClick={() => onEdit(link_edit, text)}
165
              onClick={() => onEdit(link_edit, text)}
Línea 163... Línea 175...
163
            >
175
            >
164
              <DeleteIcon />
176
              <DeleteIcon />
165
              {labels.delete}
177
              {labels.delete}
166
            </button>
178
            </button>
167
          )}
179
          )}
168
          {link_save_reaction && (
-
 
169
            <ReactionsButton
-
 
170
              className="btn feed__share-option"
-
 
171
              currentReaction={reaction}
-
 
172
              saveUrl={link_save_reaction}
-
 
173
              deleteUrl={link_reaction_delete}
-
 
174
              onChange={(res) => {
-
 
175
                setTotalReactions(res.total_reactions_answer)
-
 
176
                updateReactions(res.total_reactions_question)
-
 
177
              }}
-
 
178
              withLabel
-
 
179
            />
-
 
180
          )}
-
 
181
        </AnswerActions>
180
        </AnswerActions>
182
        <CommentForm onSubmit={addComment} />
181
        <CommentForm onSubmit={addComment} />
183
        <CommentsList comments={comments} onDelete={deleteComment} />
182
        <CommentsList comments={comments} onDelete={deleteComment} />
184
      </StyledQuestionCard>
183
      </StyledQuestionCard>
185
    </>
184
    </>