Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5813 Rev 5814
Línea 2... Línea 2...
2
import React, { useEffect, useState } from 'react'
2
import React, { useEffect, useState } from 'react'
3
import parse from 'html-react-parser'
3
import parse from 'html-react-parser'
4
import { axios } from '../../utils'
4
import { axios } from '../../utils'
5
import { useDispatch } from 'react-redux'
5
import { useDispatch } from 'react-redux'
6
import { setIntlLabels } from '../../redux/intl/intl.action'
6
import { setIntlLabels } from '../../redux/intl/intl.action'
7
import { ReactionButton } from '../components/feed/withReaction'
7
import withReactions from '../components/feed/withReaction'
8
import { addNotification } from '../../redux/notification/notification.actions'
8
import { addNotification } from '../../redux/notification/notification.actions'
Línea 9... Línea 9...
9
 
9
 
10
import HomeNews from '../components/home-section/HomeNews'
10
import HomeNews from '../components/home-section/HomeNews'
11
import InputOption from '../templates/linkedin/Feed/InputOption'
11
import InputOption from '../templates/linkedin/Feed/InputOption'
Línea 140... Línea 140...
140
      setOwnerReaction(data.reactions)
140
      setOwnerReaction(data.reactions)
141
      return true
141
      return true
142
    })
142
    })
143
  }
143
  }
Línea -... Línea 144...
-
 
144
 
-
 
145
  const WithReactionIcon = withReactions(InputOption, {
-
 
146
    onSelect: saveReaction,
-
 
147
    onDelete: deleteReaction,
-
 
148
    myReaction: post.my_reaction,
-
 
149
  })
144
 
150
 
145
  useEffect(() => {
151
  useEffect(() => {
146
    dispatch(setIntlLabels(labels))
152
    dispatch(setIntlLabels(labels))
Línea 147... Línea 153...
147
  }, [])
153
  }, [])
Línea 196... Línea 202...
196
              {externalShare && (
202
              {externalShare && (
197
                <span>{`${externalShare} ${labels.SENDS.toLowerCase()}`}</span>
203
                <span>{`${externalShare} ${labels.SENDS.toLowerCase()}`}</span>
198
              )}
204
              )}
199
            </div>
205
            </div>
200
            <div className="feed__buttons">
206
            <div className="feed__buttons">
201
              <div className="feed__share-option">
-
 
202
                <ReactionButton
207
              <WithReactionIcon />
203
                  onSelect={saveReaction}
-
 
204
                  onDelete={deleteReaction}
-
 
205
                  myReaction={post.my_reaction}
-
 
206
                />
-
 
207
              </div>
-
 
208
              <InputOption
208
              <InputOption
209
                Icon={ChatOutlinedIcon}
209
                Icon={ChatOutlinedIcon}
210
                title={labels.COMMENTS}
210
                title={labels.COMMENTS}
211
                color="gray"
211
                color="gray"
212
                onClick={displayCommentSection}
212
                onClick={displayCommentSection}