Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3427 Rev 3428
Línea 1... Línea 1...
1
import React, { useEffect } from "react";
1
import React from "react";
2
import { useDispatch, useSelector } from "react-redux";
-
 
Línea 3... Línea -...
3
 
-
 
4
import { useApi } from "@hooks";
2
 
5
import { getCredentials, getLanguages } from "@services/auth";
-
 
6
import { labelsAdapter } from "./utils/labels";
-
 
7
import { setIntlLabels } from "./redux/intl/intl.action";
-
 
Línea 8... Línea -...
8
import { setCrendentials } from "./redux/auth/auth.actions";
-
 
9
 
-
 
10
import AppRoutes from "./routes/routes";
3
import { useCredentials, useLanguages } from "@hooks";
-
 
4
 
Línea 11... Línea 5...
11
import ErrorPage from "./pages/error/error-page";
5
import Spinner from "./components/UI/Spinner";
Línea 12... Línea 6...
12
import Spinner from "./components/UI/Spinner";
6
import ErrorPage from "./pages/error/error-page";
13
 
-
 
14
import "./styles/globals.scss";
-
 
15
 
-
 
16
export default function App() {
7
 
17
  const {
8
import "./styles/globals.scss";
18
    data: credentials,
9
 
19
    error: credentialsError,
-
 
Línea 20... Línea 10...
20
    loading: loadingCredentials,
10
function App() {
21
  } = useApi(getCredentials, {
11
  const { loading: loadingCredentials, error: credentialsError } =
Línea 22... Línea 12...
22
    autofetch: true,
12
    useCredentials();
23
  });
13
  const { loading: loadingLanguages, error: languagesError } = useLanguages();
24
 
14
 
Línea 37... Línea 27...
37
    <>
27
    <>
38
      <h1>Heelo</h1>
28
      <h1>Heelo</h1>
39
    </>
29
    </>
40
  );
30
  );
41
}
31
}
-
 
32
 
-
 
33
export default App;