Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7230 Rev 7231
Línea 32... Línea 32...
32
 
32
 
33
const KnowledgeActions = styled(CardActions)`
33
const KnowledgeActions = styled(CardActions)`
34
  & > * {
34
  & > * {
35
    flex: 1;
35
    flex: 1;
-
 
36
    max-width: calc(100% / 3);
36
    max-width: calc(100% / 3);
37
    position: relative;
37
  }
38
  }
Línea 38... Línea 39...
38
`
39
`
39
 
40
 
Línea 54... Línea 55...
54
  })
55
  })
55
  const labels = useSelector(({ intl }) => intl.labels)
56
  const labels = useSelector(({ intl }) => intl.labels)
56
  const dispatch = useDispatch()
57
  const dispatch = useDispatch()
57
  const { uuid } = useParams()
58
  const { uuid } = useParams()
Línea 58... Línea -...
58
 
-
 
59
  const changeReaction = ({ reactions }) => {
-
 
60
    setKnowledge((prevKnowledge) => ({ ...prevKnowledge }))
-
 
61
  }
-
 
62
 
59
 
63
  const addComment = ({ comment }) => {
60
  const addComment = ({ comment }) => {
64
    const formData = new FormData()
61
    const formData = new FormData()
Línea 65... Línea 62...
65
    formData.append('comment', comment)
62
    formData.append('comment', comment)
Línea 188... Línea 185...
188
              </Typography>
185
              </Typography>
189
              {knowledge.description && parse(knowledge.description)}
186
              {knowledge.description && parse(knowledge.description)}
190
            </CardContent>
187
            </CardContent>
191
            <KnowledgeActions>
188
            <KnowledgeActions>
192
              <ReactionsButton
189
              <ReactionsButton
193
                onChange={changeReaction}
-
 
194
                currentReaction={knowledge.reaction}
190
                currentReaction={knowledge.reaction}
195
                withLabel
191
                withLabel
196
                deleteUrl={knowledge.routeDeleteReaction}
192
                deleteUrl={knowledge.routeDeleteReaction}
197
                saveUrl={knowledge.routeSaveReaction}
193
                saveUrl={knowledge.routeSaveReaction}
198
              />
194
              />
Línea 199... Línea 195...
199
 
195
 
200
              {knowledge.attachment && (
196
              {knowledge.attachment && (
201
                <a
197
                <a
202
                  href={knowledge.attachment}
198
                  href={knowledge.attachment}
203
                  download
199
                  download
204
                  className="btn reaction-btn"
200
                  className="btn feed__share-option"
205
                >
201
                >
206
                  <FileDownloadIcon />
202
                  <FileDownloadIcon />
207
                  {labels.knowledge_area_download_attachment}
203
                  {labels.knowledge_area_download_attachment}
208
                </a>
204
                </a>
209
              )}
205
              )}
210
              {knowledge.link && (
206
              {knowledge.link && (
211
                <a
207
                <a
212
                  href={knowledge.link}
208
                  href={knowledge.link}
213
                  className="btn reaction-btn"
209
                  className="btn feed__share-option"
214
                  target="_blank"
210
                  target="_blank"
215
                  rel="noreferrer"
211
                  rel="noreferrer"
216
                >
212
                >
217
                  {labels.knowledge_area_go_to_link}
213
                  {labels.knowledge_area_go_to_link}