Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2965 Rev 2966
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { Pagination as MuiPagination, styled } from '@mui/material'
2
import { Pagination as MuiPagination, styled } from '@mui/material'
Línea 3... Línea -...
3
 
-
 
4
import colors from '@styles/colors'
-
 
5
 
3
 
6
const StyledPagination = styled(MuiPagination)(({ theme }) => ({
4
const StyledPagination = styled(MuiPagination)(({ theme }) => ({
7
  padding: theme.spacing(0, 1),
5
  padding: theme.spacing(0, 1),
8
  '.MuiPagination-ul': {
6
  '.MuiPagination-ul': {
9
    width: '100%',
7
    width: '100%',
10
    display: 'flex',
8
    display: 'flex',
11
    alignItems: 'center',
9
    alignItems: 'center',
12
    justifyContent: 'space-around',
10
    justifyContent: 'space-around',
13
    gap: theme.spacing(0.5)
-
 
14
  },
-
 
15
  '.MuiPaginationItem-root': {
-
 
16
    backgroundColor: colors.main
11
    gap: theme.spacing(0.5)
17
  }
12
  }
Línea 18... Línea 13...
18
}))
13
}))
19
 
14
 
Línea 29... Línea 24...
29
  return (
24
  return (
30
    <StyledPagination
25
    <StyledPagination
31
      count={pages}
26
      count={pages}
32
      page={currentPage}
27
      page={currentPage}
33
      onChange={handleChange}
28
      onChange={handleChange}
-
 
29
      variant='outlined'
-
 
30
      color='secondary'
34
    />
31
    />
35
  )
32
  )
36
}
33
}
Línea 37... Línea 34...
37
 
34