Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1735 Rev 1736
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { Container, Typography } from '@mui/material'
2
import { Container, Grid, Typography } from '@mui/material'
-
 
3
 
3
import useFetch from '@app/hooks/useFetch'
4
import useFetch from '@app/hooks/useFetch'
-
 
5
 
4
import LoaderContainer from '@app/components/UI/LoaderContainer'
6
import LoaderContainer from '@app/components/UI/LoaderContainer'
-
 
7
import PaginationComponent from '@app/components/UI/PaginationComponent'
5
import { Spinner } from 'react-bootstrap'
8
import Spinner from '@app/components/UI/Spinner'
-
 
9
import ReportList from '@app/components/abuse-report/report-list'
Línea 6... Línea 10...
6
 
10
 
-
 
11
export default function AbuseReportPage() {
-
 
12
  const {
-
 
13
    data: { items },
7
export default function AbuseReportPage() {
14
    isLoading
Línea 8... Línea 15...
8
  const { data, isLoading } = useFetch('/abuse-report')
15
  } = useFetch('/abuse-report')
9
 
16
 
10
  if (isLoading) {
17
  if (isLoading) {
11
    return (
18
    return (
Línea 16... Línea 23...
16
  }
23
  }
Línea 17... Línea 24...
17
 
24
 
18
  return (
25
  return (
19
    <Container>
26
    <Container>
-
 
27
      <Typography variant='h1'>Reportes de abuso</Typography>
-
 
28
      <Grid container spacing={2}>
-
 
29
        <Grid item xs={12} md={4}></Grid>
20
      <Typography variant='h1'>Reportes de abuso</Typography>
30
 
-
 
31
        <Grid item xs={12} md={8}>
-
 
32
          <ReportList reports={items} />
-
 
33
          <PaginationComponent isRow />
-
 
34
        </Grid>
21
      {JSON.stringify(data, null, 4)}
35
      </Grid>
22
    </Container>
36
    </Container>
23
  )
37
  )