Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1105 Rev 1107
Línea 42... Línea 42...
42
  const [authorizedLinks, setAuthorizedLinks] = useState(null);
42
  const [authorizedLinks, setAuthorizedLinks] = useState(null);
43
  const [loading, setLoading] = useState(false);
43
  const [loading, setLoading] = useState(false);
44
  const [followers, setFollowers] = useState(totalFollowers);
44
  const [followers, setFollowers] = useState(totalFollowers);
45
  const [initialLoading, setInitialLoading] = useState(true);
45
  const [initialLoading, setInitialLoading] = useState(true);
46
  const [isFollower, setIsFollower] = useState(true);
46
  const [isFollower, setIsFollower] = useState(true);
47
  const [currentTab, setCurrentTab] = useState(TABS.FEEDS);
47
  const [currentTab, setCurrentTab] = useState(TABS.INFO);
48
  const [suggestionCompanies, setSuggestionCompanies] = useState([])
48
  const [suggestionCompanies, setSuggestionCompanies] = useState([])
49
  const shouldSetInitialTab = useRef(true);
49
  const shouldSetInitialTab = useRef(true);
Línea 50... Línea 50...
50
 
50
 
51
  useEffect(async () => {
51
  useEffect(async () => {
Línea 66... Línea 66...
66
    } finally {
66
    } finally {
67
      setLoading(false)
67
      setLoading(false)
68
    }
68
    }
69
  }
69
  }
Línea -... Línea 70...
-
 
70
 
-
 
71
  useEffect(() => {
-
 
72
    isFollower
-
 
73
    ?  setCurrentTab(TABS.FEEDS)
-
 
74
    : setCurrentTab(TABS.INFO)
-
 
75
  }, []);
70
 
76
 
71
  const fetchAuthorizedLinks = async () => {
77
  const fetchAuthorizedLinks = async () => {
72
    setLoading(true);
78
    setLoading(true);
73
    const response = await axios.get(`/company/view/${companyId}`);
79
    const response = await axios.get(`/company/view/${companyId}`);
74
    const resData = response.data;
80
    const resData = response.data;