Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1005 Rev 1007
Línea 39... Línea 39...
39
    isOpen,
39
    isOpen,
40
    modalType,
40
    modalType,
41
    lastModalType,
41
    lastModalType,
42
    setModalType,
42
    setModalType,
43
    feedType,
43
    feedType,
-
 
44
    fetchFeeds,
-
 
45
    currentPage,
44
    timelineUrl
46
    timelineUrl
45
  } = props;
47
  } = props;
46
  // Redux dispatch Destructuring
48
  // Redux dispatch Destructuring
47
  const { closeShareModal, addNotification, addFeed, openShareModal } = props;
49
  const { closeShareModal, addNotification, addFeed, openShareModal } = props;
48
  // states
50
  // states
Línea 94... Línea 96...
94
        return "Video de extensión mp4, mpeg, webm";
96
        return "Video de extensión mp4, mpeg, webm";
95
      default:
97
      default:
96
        return "";
98
        return "";
97
    }
99
    }
98
  };
100
  };
99
 
-
 
100
  console.log('>>: timelineUrl > ', timelineUrl)
-
 
101
  useEffect(() => {
101
  useEffect(() => {
102
    const postedOrShared = modalType === shareModalTypes.SHARE ? "s" : "p";
102
    const postedOrShared = modalType === shareModalTypes.SHARE ? "s" : "p";
103
    setValue("posted_or_shared", postedOrShared);
103
    setValue("posted_or_shared", postedOrShared);
104
    if (getValues("file") || getValues("description")) {
104
    if (getValues("file") || getValues("description")) {
105
      if (modalType !== lastModalType) {
105
      if (modalType !== lastModalType) {
Línea 168... Línea 168...
168
          style: "success",
168
          style: "success",
169
          msg: "La publicación ha sido compartida",
169
          msg: "La publicación ha sido compartida",
170
        });
170
        });
171
        // if (modalType !== shareModalTypes.SHARE) {
171
        // if (modalType !== shareModalTypes.SHARE) {
172
          addFeed(newFeed);
172
          addFeed(newFeed);
-
 
173
          if(currentPage && timelineUrl){
-
 
174
            console.log('>>: currentPage', currentPage, timelineUrl)
-
 
175
            fetchFeeds(timelineUrl, currentPage)
-
 
176
          }
-
 
177
          
173
        // }
178
        // }
174
      } else {
179
      } else {
175
        if (data.data.description || data.data.file || data.data.share_width) {
180
        if (data.data.description || data.data.file || data.data.share_width) {
176
          Object.entries(data.data).map(([key, value]) => {
181
          Object.entries(data.data).map(([key, value]) => {
177
            setError(key, { type: "required", message: value });
182
            setError(key, { type: "required", message: value });