Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2164 Rev 2165
Línea 110... Línea 110...
110
  useEffect(() => {
110
  useEffect(() => {
111
    getBackendVars(pathname)
111
    getBackendVars(pathname)
112
      .then((post) => {
112
      .then((post) => {
113
        setMyReaction(post.my_reaction)
113
        setMyReaction(post.my_reaction)
114
        setTotalSends(post.total_share_external)
114
        setTotalSends(post.total_share_external)
-
 
115
        setReactions(post.reactions)
115
        setPost(post)
116
        setPost(post)
116
      })
117
      })
117
      .catch(() => {
118
      .catch(() => {
118
        dispatch(
119
        dispatch(
119
          addNotification({
120
          addNotification({
Línea 228... Línea 229...
228
}
229
}
Línea 229... Línea 230...
229
 
230
 
230
export const renderContent = ({ type, file }) => {
231
export const renderContent = ({ type, file }) => {
231
  switch (type) {
232
  switch (type) {
-
 
233
    case 'video': {
232
    case 'video': {
234
      return (
-
 
235
        <video src={file} controls preload='none' controlsList='nodownload' />
233
      return <video src={file} controls preload='none' />
236
      )
Línea 234... Línea 237...
234
    }
237
    }
235
 
238
 
236
    case 'image': {
239
    case 'image': {