Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2889 Rev 2890
Línea 5... Línea 5...
5
 
5
 
6
import { axios, parse } from '@utils'
6
import { axios, parse } from '@utils'
7
import { withReactions } from '@hocs'
7
import { withReactions } from '@hocs'
Línea 8... Línea -...
8
import { addNotification } from '@store/notification/notification.actions'
-
 
9
 
8
import { addNotification } from '@store/notification/notification.actions'
10
import { QuestionStats } from './QuestionCard'
9
 
11
import Widget from '@components/UI/Widget'
10
import Widget from '@components/UI/Widget'
12
import Button from '@components/UI/buttons/Buttons'
11
import Button from '@components/UI/buttons/Buttons'
13
import CommentForm from '@components/dashboard/linkedin/comments/comment-form'
12
import CommentForm from '@components/dashboard/linkedin/comments/comment-form'
Línea 105... Línea 104...
105
    <>
104
    <>
106
      <Widget>
105
      <Widget>
107
        <Widget.Header
106
        <Widget.Header
108
          avatar={user_image}
107
          avatar={user_image}
109
          title={user_name}
108
          title={user_name}
-
 
109
          subheader={time_elapsed}
110
          renderAction={() => (
110
          renderAction={() => (
111
            <Options>
111
            <Options>
112
              {link_delete && (
112
              {link_delete && (
113
                <Options.Item onClick={() => onDelete(link_delete)}>
113
                <Options.Item onClick={() => onDelete(link_delete)}>
114
                  Borrar
114
                  Borrar
Línea 118... Línea 118...
118
          )}
118
          )}
119
        />
119
        />
Línea 120... Línea 120...
120
 
120
 
121
        <Widget.Body>
121
        <Widget.Body>
122
          <Typography>{parse(text)}</Typography>
-
 
Línea 123... Línea -...
123
        </Widget.Body>
-
 
124
 
122
          <Typography>{parse(text)}</Typography>
125
        <QuestionStats>
123
 
126
          <span>{`${labels.published} ${time_elapsed}`}</span>
124
          <Box sx={{ display: 'flex', justifyContent: 'space-between' }}>
-
 
125
            <Typography variant='body2'>{`${totalReactions} ${labels.reactions}`}</Typography>
127
          <span>{`${totalReactions} ${labels.reactions}`}</span>
126
            <Typography variant='body2'>{`${totalComments} ${labels.comments}`}</Typography>
Línea 128... Línea 127...
128
          <span>{`${totalComments} ${labels.comments}`}</span>
127
          </Box>
129
        </QuestionStats>
128
        </Widget.Body>
130
 
129
 
131
        <Widget.Actions>
130
        <Widget.Actions>
Línea 155... Línea 154...
155
              {labels.edit}
154
              {labels.edit}
156
            </Button>
155
            </Button>
157
          )}
156
          )}
158
        </Widget.Actions>
157
        </Widget.Actions>
Línea 159... Línea 158...
159
 
158
 
160
        <Box sx={{ padding: 0.5 }}>
159
        <Box sx={{ padding: 0.5, display: showComments ? 'block' : 'none' }}>
161
          <CommentForm onSubmit={addComment} />
160
          <CommentForm onSubmit={addComment} />
162
          <CommentsList comments={comments} onDelete={deleteComment} />
161
          <CommentsList comments={comments} onDelete={deleteComment} />
163
        </Box>
162
        </Box>
164
      </Widget>
163
      </Widget>