Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 5107 Rev 5109
Línea -... Línea 1...
-
 
1
/* eslint-disable camelcase */
1
/* eslint-disable react/prop-types */
2
/* eslint-disable react/prop-types */
2
import React, { useEffect, useRef, useState } from 'react'
3
import React, { useEffect, useRef, useState } from 'react'
3
import ThumbUpAltOutlinedIcon from '@mui/icons-material/ThumbUpAltOutlined'
4
import ThumbUpAltOutlinedIcon from '@mui/icons-material/ThumbUpAltOutlined'
4
import ThumbUpAltIcon from '@mui/icons-material/ThumbUpAlt'
5
import ThumbUpAltIcon from '@mui/icons-material/ThumbUpAlt'
5
import ChatOutlinedIcon from '@mui/icons-material/ChatOutlined'
6
import ChatOutlinedIcon from '@mui/icons-material/ChatOutlined'
Línea 20... Línea 21...
20
import withExternalShare from './withExternalShare'
21
import withExternalShare from './withExternalShare'
21
import ConfirmModal from '../../../../shared/confirm-modal/ConfirmModal'
22
import ConfirmModal from '../../../../shared/confirm-modal/ConfirmModal'
22
import { deleteFeed } from '../../../../redux/feed/feed.actions'
23
import { deleteFeed } from '../../../../redux/feed/feed.actions'
23
import FeedModal from '../../../components/feed/FeedModal'
24
import FeedModal from '../../../components/feed/FeedModal'
Línea 24... Línea 25...
24
 
25
 
25
const Feed = (props) => {
-
 
26
  const {
26
const Feed = ({
27
    isShare = false,
27
  isShare = false,
28
    feed_unique,
28
  feed_unique,
29
    feed_is_liked,
29
  feed_is_liked,
30
    feed_like_url,
30
  feed_like_url,
31
    feed_unlike_url,
31
  feed_unlike_url,
32
    feed_share_url,
32
  feed_share_url,
33
    feed_share_external_url,
33
  feed_share_external_url,
34
    feed_delete_url,
34
  feed_delete_url,
35
    feed_likes,
35
  feed_likes,
36
    owner_url,
36
  owner_url,
37
    owner_image,
37
  owner_image,
38
    owner_name,
38
  owner_name,
39
    owner_description,
39
  owner_description,
40
    owner_shared,
40
  owner_shared,
41
    owner_comments,
41
  owner_comments,
42
    owner_time_elapse,
42
  owner_time_elapse,
43
    owner_file_image_preview,
43
  owner_file_image_preview,
44
    owner_file_video,
44
  owner_file_video,
45
    owner_file_image,
45
  owner_file_image,
46
    owner_file_document,
46
  owner_file_document,
47
    comment_add_url,
47
  comment_add_url,
48
    comments,
48
  comments,
49
    shared_name,
49
  shared_name,
50
    shared_image,
50
  shared_image,
51
    shared_time_elapse,
51
  shared_time_elapse,
52
    shared_description,
52
  shared_description,
53
    shared_file_video,
53
  shared_file_video,
54
    shared_file_image_preview,
54
  shared_file_image_preview,
55
    shared_file_image,
55
  shared_file_image,
56
    owner_external_shared,
56
  owner_external_shared,
57
    shared_file_document,
57
  shared_file_document,
58
    shared_url,
58
  shared_url,
59
    feed_increment_external_counter_url,
59
  feed_increment_external_counter_url,
60
    addNotification, // REDUX ACTION
60
  addNotification, // REDUX ACTION
61
    openShareModal // REDUX ACTION
61
  openShareModal // REDUX ACTION
62
  } = props
-
 
63
 
62
}) => {
64
  const [feedIsLiked, setFeedIsLiked] = useState(feed_is_liked)
63
  const [feedIsLiked, setFeedIsLiked] = useState(feed_is_liked)
65
  const [likesState, setLikesState] = useState(feed_likes)
64
  const [likesState, setLikesState] = useState(feed_likes)
66
  const [totalComments, setTotalComments] = useState(owner_comments)
65
  const [totalComments, setTotalComments] = useState(owner_comments)
67
  const [externalShare, setExternalShare] = useState(owner_external_shared)
66
  const [externalShare, setExternalShare] = useState(owner_external_shared)
Línea 334... Línea 333...
334
                  className="option-btn"
333
                  className="option-btn"
335
                  onClick={handleShowConfirmModal}
334
                  onClick={handleShowConfirmModal}
336
                  ref={deleteButton}
335
                  ref={deleteButton}
337
                >
336
                >
338
                  <i className="fa fa-trash-o mr-1" />
337
                  <i className="fa fa-trash-o mr-1" />
339
                  {LABELS.}
338
                  {LABELS.DELETE}
340
                </button>
339
                </button>
341
              </li>
340
              </li>
342
            </ul>
341
            </ul>
343
          </div>
342
          </div>
344
          <ConfirmModal
343
          <ConfirmModal