Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3642 Rev 3659
Línea 1... Línea 1...
1
import React from 'react';
1
import React from 'react';
2
import { Link } from 'react-router-dom';
2
import { Link } from 'react-router-dom';
Línea 3... Línea 3...
3
 
3
 
-
 
4
import { useAlert, useApi } from '@shared/hooks';
Línea 4... Línea 5...
4
import { useFetch } from '@shared/hooks';
5
import { getTopics } from '@microlearning/services';
5
 
6
 
Línea 6... Línea 7...
6
import { Grid, PageHeader, Spinner } from '@shared/components';
7
import { Grid, PageHeader, Spinner } from '@shared/components';
-
 
8
import { TopicCard } from '@microlearning/components';
-
 
9
 
7
import { TopicCard } from '@microlearning/components';
10
export function TopicsPage() {
-
 
11
  const { showError } = useAlert();
-
 
12
 
-
 
13
  const { data: topics, loading } = useApi(getTopics, {
-
 
14
    autoFetch: true,
-
 
15
    onError: (error) => {
Línea 8... Línea 16...
8
 
16
      showError(error.message);
Línea 9... Línea 17...
9
export function TopicsPage() {
17
    }
10
  const { data: topics, loading } = useFetch('/microlearning/topics');
18
  });