Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 7412 Rev 7476
Línea 5... Línea 5...
5
import DescriptionInput from "./DescriptionInput";
5
import DescriptionInput from "./DescriptionInput";
6
import { shareModalTypes } from "../redux/share-modal/shareModal.types";
6
import { shareModalTypes } from "../redux/share-modal/shareModal.types";
7
import { closeShareModal } from "../redux/share-modal/shareModal.actions";
7
import { closeShareModal } from "../redux/share-modal/shareModal.actions";
8
import { useDispatch, useSelector } from "react-redux";
8
import { useDispatch, useSelector } from "react-redux";
9
import DropzoneComponent from "./Dropzone/DropzoneComponent";
9
import DropzoneComponent from "./Dropzone/DropzoneComponent";
-
 
10
import { addFeed, fetchFeeds } from "../redux/feed/feed.actions";
Línea 10... Línea 11...
10
 
11
 
Línea 11... Línea 12...
11
const ShareModal = () => {
12
const ShareModal = () => {
12
 
13
 
-
 
14
    const [loading, setLoading] = useState(false);
Línea 13... Línea 15...
13
    const [loading, setLoading] = useState(false);
15
    const { postUrl, isOpen, modalType } = useSelector(state => state.shareModal)
Línea 14... Línea 16...
14
    const { postUrl, isOpen, modalType } = useSelector(state => state.shareModal)
16
    const { currentPage, timelineUrl, feedSharedId } = useSelector(state => state.feed)
15
 
17
 
Línea 89... Línea 91...
89
                    setValue("file", "");
91
                    setValue("file", "");
90
                    clearErrors();
92
                    clearErrors();
91
                    console.log("La publicación ha sido compartida")
93
                    console.log("La publicación ha sido compartida")
Línea 92... Línea 94...
92
 
94
 
93
                    if (currentPage && timelineUrl) {
95
                    if (currentPage && timelineUrl) {
94
                        fetchFeeds(timelineUrl, currentPage)
96
                        dispatch(fetchFeeds(timelineUrl, currentPage))
Línea 95... Línea 97...
95
                    }
97
                    }
96
 
98
 
97
                    if (feedSharedId) {
99
                    if (feedSharedId) {
Línea 98... Línea 100...
98
                        return addFeed(newFeed, feedSharedId);
100
                        return dispatch(addFeed(newFeed, feedSharedId));
99
                    }
101
                    }
Línea 100... Línea 102...
100
 
102