Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4698 Rev 4802
Línea 51... Línea 51...
51
  shared_file_video,
51
  shared_file_video,
52
  shared_file_image_preview,
52
  shared_file_image_preview,
53
  shared_file_image,
53
  shared_file_image,
54
  shared_file_document,
54
  shared_file_document,
55
  shared_url,
55
  shared_url,
-
 
56
  feed_increment_external_counter_url,
56
  addNotification, // REDUX ACTION
57
  addNotification, // REDUX ACTION
57
  openShareModal, // REDUX ACTION
58
  openShareModal, // REDUX ACTION
58
}) => {
59
}) => {
Línea 59... Línea 60...
59
 
60
 
60
  const [feedIsLiked, setFeedIsLiked] = useState(feed_is_liked);
61
  const [feedIsLiked, setFeedIsLiked] = useState(feed_is_liked);
61
  const [likesState, setLikesState] = useState(feed_likes);
62
  const [likesState, setLikesState] = useState(feed_likes);
-
 
63
  const [totalComments, setTotalComments] = useState(owner_comments);
62
  const [totalComments, setTotalComments] = useState(owner_comments);
64
  const [externalShare, setExternalShare] = useState(owner_external_shared);
63
  const [sharedState, setSharedState] = useState(owner_shared);
65
  const [sharedState, setSharedState] = useState(owner_shared);
Línea 64... Línea 66...
64
  const [showComments, setShowComments] = useState(false);
66
  const [showComments, setShowComments] = useState(false);
65
 
67
 
Línea 77... Línea 79...
77
 
79
 
Línea 78... Línea 80...
78
  const handleShare = () => openShareModal(feed_share_url, shareModalTypes.SHARE, feedTypes.DASHBOARD, feed_unique)
80
  const handleShare = () => openShareModal(feed_share_url, shareModalTypes.SHARE, feedTypes.DASHBOARD, feed_unique)
Línea 79... Línea 81...
79
 
81
 
Línea 80... Línea 82...
80
  const displayCommentSection = () => setShowComments(!showComments)
82
  const displayCommentSection = () => setShowComments(!showComments)
Línea 81... Línea 83...
81
 
83
 
82
  const ExternalShareButton = withExternalShare(InputOption, feed_share_external_url, { Icon: SendOutlinedIcon, color: 'gray', title: 'Send' })
84
  const ExternalShareButton = withExternalShare(InputOption, feed_increment_external_counter_url, { Icon: SendOutlinedIcon, color: 'gray', title: 'Send' }, feed_share_external_url)
Línea 123... Línea 125...
123
              <RecommendIcon style={{ color: '#7405f9' }} />
125
              <RecommendIcon style={{ color: '#7405f9' }} />
124
              <span>{likesState}</span>
126
              <span>{likesState}</span>
125
            </div>}
127
            </div>}
126
          <div className="d-inline-flex align-items-center" style={{ gap: '5px' }}>
128
          <div className="d-inline-flex align-items-center" style={{ gap: '5px' }}>
127
            {!!totalComments && <span>{`${totalComments} comentarios`}</span>}
129
            {!!totalComments && <span>{`${totalComments} comentarios`}</span>}
128
            {!!sharedState && <span>{`${sharedState} veces compartido`}</span>}
130
            {!!sharedState && <span>{`${sharedState} compartidos`}</span>}
-
 
131
            {!!externalShare && <span>{`${externalShare} enviados`}</span>}
129
          </div>
132
          </div>
130
        </div>
133
        </div>
131
      }
134
      }
Línea 132... Línea 135...
132
 
135