Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4309 Rev 4310
Línea 15... Línea 15...
15
import { shareModalTypes } from '../../../../redux/share-modal/shareModal.types'
15
import { shareModalTypes } from '../../../../redux/share-modal/shareModal.types'
16
import { feedTypes } from '../../../../redux/feed/feed.types'
16
import { feedTypes } from '../../../../redux/feed/feed.types'
17
import FeedCommentSection from '../../../components/feed/feed-comment/FeedCommentSection'
17
import FeedCommentSection from '../../../components/feed/feed-comment/FeedCommentSection'
18
import { connect } from 'react-redux'
18
import { connect } from 'react-redux'
19
import withExternalShare from './withExternalShare'
19
import withExternalShare from './withExternalShare'
20
import SharedContent from '../../../components/feed/SharedContent'
-
 
Línea 21... Línea 20...
21
 
20
 
22
const Feed = ({
21
const Feed = ({
23
  isShare,
22
  isShare = false,
24
  feed_unique,
23
  feed_unique,
25
  feed_is_liked,
24
  feed_is_liked,
26
  feed_like_url,
25
  feed_like_url,
27
  feed_unlike_url,
26
  feed_unlike_url,
Línea 106... Línea 105...
106
            file_document: shared_file_document
105
            file_document: shared_file_document
107
          }}
106
          }}
108
        />
107
        />
109
      </div>
108
      </div>
Línea -... Línea 109...
-
 
109
 
-
 
110
      {
110
 
111
        !isShare &&
111
      <div className='feed__buttons'>
112
        <div className='feed__buttons'>
112
        <InputOption
113
          <InputOption
113
          Icon={feedIsLiked ? ThumbUpAltIcon : ThumbUpAltOutlinedIcon}
114
            Icon={feedIsLiked ? ThumbUpAltIcon : ThumbUpAltOutlinedIcon}
114
          title='Like'
115
            title='Like'
115
          color={feedIsLiked ? '#7405f9' : 'gray'}
116
            color={feedIsLiked ? '#7405f9' : 'gray'}
116
          onClick={() => handleLike(feedIsLiked ? feed_unlike_url : feed_like_url)}
117
            onClick={() => handleLike(feedIsLiked ? feed_unlike_url : feed_like_url)}
117
        />
118
          />
118
        <InputOption
119
          <InputOption
119
          Icon={ChatOutlinedIcon}
120
            Icon={ChatOutlinedIcon}
120
          title='Comment'
121
            title='Comment'
121
          color='gray'
122
            color='gray'
122
          onClick={displayCommentSection}
123
            onClick={displayCommentSection}
123
        />
124
          />
124
        <InputOption
125
          <InputOption
125
          Icon={ShareOutlinedIcon}
126
            Icon={ShareOutlinedIcon}
126
          title='Share'
127
            title='Share'
127
          color='gray'
128
            color='gray'
128
          onClick={handleShare}
129
            onClick={handleShare}
129
        />
130
          />
130
        <ExternalShareButton />
131
          <ExternalShareButton />
-
 
132
        </div>
Línea 131... Línea 133...
131
      </div>
133
      }
132
 
134
 
133
      <FeedCommentSection
135
      <FeedCommentSection
134
        feedId={feed_unique}
136
        feedId={feed_unique}
Línea 171... Línea 173...
171
        </a>
173
        </a>
172
      }
174
      }
173
      {sharedItem.name &&
175
      {sharedItem.name &&
174
        <div className="p-3">
176
        <div className="p-3">
175
          <Feed
177
          <Feed
-
 
178
            isShare={true}
176
            owner_name={sharedItem.name}
179
            owner_name={sharedItem.name}
177
            owner_image={sharedItem.image}
180
            owner_image={sharedItem.image}
178
            owner_time_elapse={sharedItem.time_elapse}
181
            owner_time_elapse={sharedItem.time_elapse}
179
            owner_description={sharedItem.description}
182
            owner_description={sharedItem.description}
180
            owner_file_video={sharedItem.file_video}
183
            owner_file_video={sharedItem.file_video}