Proyectos de Subversion LeadersLinked - SPA

Rev

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

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