Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3323 Rev 3324
Línea 22... Línea 22...
22
// Redux actions
22
// Redux actions
23
import { openShareModal } from "../../../redux/share-modal/shareModal.actions";
23
import { openShareModal } from "../../../redux/share-modal/shareModal.actions";
24
import { addNotification } from "../../../redux/notification/notification.actions";
24
import { addNotification } from "../../../redux/notification/notification.actions";
25
import { deleteFeed } from "../../../redux/feed/feed.actions";
25
import { deleteFeed } from "../../../redux/feed/feed.actions";
26
import { useRef } from "react";
26
import { useRef } from "react";
-
 
27
import ExternalShareModal from "./ExternalShareModal";
Línea 27... Línea 28...
27
 
28
 
Línea 28... Línea 29...
28
const FeedTemplate = ({ feed, owner_shared, image }) => {
29
const FeedTemplate = ({ feed, owner_shared, image }) => {
29
 
30
 
Línea 71... Línea 72...
71
  const [likesState, setLikesState] = useState(feed_likes);
72
  const [likesState, setLikesState] = useState(feed_likes);
72
  const [isReadMoreActive, setIsReadMoreActive] = useState(false);
73
  const [isReadMoreActive, setIsReadMoreActive] = useState(false);
73
  const [showConfirmModal, setShowConfirmModal] = useState(false);
74
  const [showConfirmModal, setShowConfirmModal] = useState(false);
74
  const [displayOption, setDisplayOption] = useState(false)
75
  const [displayOption, setDisplayOption] = useState(false)
75
  const [shareOptions, setShareOptions] = useState(false)
76
  const [shareOptions, setShareOptions] = useState(false)
-
 
77
  const [shareModalProps, setShareModalProps] = useState({
-
 
78
    isShow: false,
-
 
79
    url: ''
-
 
80
  })
76
  const [show, setShow] = useState(false);
81
  const [show, setShow] = useState(false);
77
  const deleteButton = useRef();
82
  const deleteButton = useRef();
78
  const shareContainer = useRef(null);
83
  const shareContainer = useRef(null);
Línea 79... Línea 84...
79
 
84
 
Línea 404... Línea 409...
404
            <TopBar />
409
            <TopBar />
405
            <OwnerDescription />
410
            <OwnerDescription />
406
          </div>
411
          </div>
407
        </div>
412
        </div>
408
      </Modal>
413
      </Modal>
-
 
414
      <ExternalShareModal
-
 
415
        url={shareModalProps.url}
-
 
416
        isShow={shareModalProps.isShow}
-
 
417
        closeModal={() => setShareModalProps(prev => ({ ...prev, isShow: false }))}
409
 
418
      />
410
      <div className={`${styles.postContainer} ${feed_highlighted ? 'highlighted' : ''}`}>
419
      <div className={`${styles.postContainer} ${feed_highlighted ? 'highlighted' : ''}`}>
411
        <TopBar
420
        <TopBar
412
          showDescription
421
          showDescription
413
        />
422
        />
414
        <div
423
        <div
Línea 455... Línea 464...
455
            </li>
464
            </li>
456
            <li className="position-relative">
465
            <li className="position-relative">
457
              <button
466
              <button
458
                type="button"
467
                type="button"
459
                className="btn-indicator"
468
                className="btn-indicator"
-
 
469
                onClick={() => {
460
                onClick={() => setShareOptions(!shareOptions)}
470
                  setShareOptions(!shareOptions)
-
 
471
                  setShareModalProps(prev => ({ ...prev, isShow: true }))
-
 
472
                }}
461
              >
473
              >
462
                <BiShareAlt />
474
                <BiShareAlt />
463
              </button>
475
              </button>
464
              {
476
              {
465
                shareOptions &&
477
                shareOptions &&