Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1979 Rev 2162
Línea 8... Línea 8...
8
import styled from 'styled-components'
8
import styled from 'styled-components'
Línea 9... Línea 9...
9
 
9
 
10
import { QuestionStats } from './QuestionCard'
10
import { QuestionStats } from './QuestionCard'
11
import Paraphrase from '../UI/Paraphrase'
11
import Paraphrase from '../UI/Paraphrase'
12
import WidgetWrapper from '../widgets/WidgetLayout'
-
 
13
import ReactionsButton from '../UI/buttons/ReactionsButton'
12
import WidgetWrapper from '../widgets/WidgetLayout'
14
import CommentForm from '../dashboard/linkedin/comments/comment-form'
13
import CommentForm from '../dashboard/linkedin/comments/comment-form'
-
 
14
import CommentsList from '../dashboard/linkedin/comments/comment-list'
-
 
15
import withReactions from '@app/hocs/withReaction'
Línea 15... Línea 16...
15
import CommentsList from '../dashboard/linkedin/comments/comment-list'
16
import Button from '../UI/buttons/Buttons'
16
 
17
 
17
const StyledForm = styled(CommentForm)`
18
const StyledForm = styled(CommentForm)`
18
  border: 1px solid lightgray;
19
  border: 1px solid lightgray;
Línea 111... Línea 112...
111
      .catch((err) => {
112
      .catch((err) => {
112
        dispatch(addNotification({ style: 'danger', msg: err.message }))
113
        dispatch(addNotification({ style: 'danger', msg: err.message }))
113
      })
114
      })
114
  }
115
  }
Línea -... Línea 116...
-
 
116
 
-
 
117
  const ReactionsButton = withReactions(Button)
115
 
118
 
116
  return (
119
  return (
117
    <>
120
    <>
118
      <WidgetWrapper>
121
      <WidgetWrapper>
119
        <WidgetWrapper.Header image={user_image} title={user_name}>
122
        <WidgetWrapper.Header image={user_image} title={user_name}>
Línea 129... Línea 132...
129
        </WidgetWrapper.Body>
132
        </WidgetWrapper.Body>
Línea 130... Línea 133...
130
 
133
 
131
        <WidgetWrapper.Actions>
134
        <WidgetWrapper.Actions>
132
          {link_save_reaction && (
135
          {link_save_reaction && (
133
            <ReactionsButton
136
            <ReactionsButton
134
              currentReaction={reaction}
137
              currentReactionType={reaction}
135
              saveUrl={link_save_reaction}
138
              saveUrl={link_save_reaction}
136
              deleteUrl={link_reaction_delete}
139
              deleteUrl={link_reaction_delete}
-
 
140
              onReaction={({
-
 
141
                total_reactions_answer,
-
 
142
                total_reactions_question
137
              onChange={(res) => {
143
              }) => {
138
                setTotalReactions(res.total_reactions_answer)
144
                setTotalReactions(total_reactions_answer)
139
                updateReactions(res.total_reactions_question)
145
                updateReactions(total_reactions_question)
140
              }}
-
 
141
              withLabel
146
              }}
142
            />
147
            />
143
          )}
148
          )}
144
          {link_add_comment && (
149
          {link_add_comment && (
145
            <button onClick={() => setShowComments(!showComments)}>
150
            <button onClick={() => setShowComments(!showComments)}>