Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3719 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3719 Rev 3749
Línea 4... Línea 4...
4
import { axios } from './utils';
4
import { axios } from './utils';
5
import { useFetch } from '@hooks';
5
import { useFetch } from '@hooks';
6
import { labelsAdapter } from './utils/labels';
6
import { labelsAdapter } from './utils/labels';
7
import { setIntlLabels } from './redux/intl/intl.action';
7
import { setIntlLabels } from './redux/intl/intl.action';
8
import { logout, setCrendentials } from './redux/auth/auth.actions';
8
import { logout, setCrendentials } from './redux/auth/auth.actions';
-
 
9
import { useTheme } from './hooks/useTheme';
Línea 9... Línea 10...
9
 
10
 
10
import AppRoutes from './routes/routes';
11
import AppRoutes from './routes/routes';
Línea 11... Línea 12...
11
import Spinner from './components/UI/Spinner';
12
import Spinner from './components/UI/Spinner';
12
 
13
 
13
export default function App() {
14
export default function App() {
14
  const [loading, setLoading] = useState(true);
15
  const [loading, setLoading] = useState(true);
15
  const { data: labels } = useFetch('/language');
16
  const { data: labels } = useFetch('/language');
-
 
17
  const { is_logged_in } = useSelector((state) => state.auth);
Línea 16... Línea 18...
16
  const { is_logged_in } = useSelector((state) => state.auth);
18
  const dispatch = useDispatch();
17
  const dispatch = useDispatch();
19
  useTheme();
18
 
20
 
19
  const getCredentials = async () => {
21
  const getCredentials = async () => {