Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1624 Rev 1625
Línea 23... Línea 23...
23
  const currentPage = useMemo(
23
  const currentPage = useMemo(
24
    () => Number(currentActivePage) || 1,
24
    () => Number(currentActivePage) || 1,
25
    [currentActivePage]
25
    [currentActivePage]
26
  )
26
  )
Línea -... Línea 27...
-
 
27
 
-
 
28
  if (pages <= 1) {
-
 
29
    return null
-
 
30
  }
27
 
31
 
28
  return (
32
  return (
29
    <StyledPagination
33
    <StyledPagination
30
      count={pages}
34
      count={pages}
31
      page={currentPage}
35
      page={currentPage}
32
      onChange={(_, page) => onChangePage(page)}
36
      onChange={(_, page) => onChangePage(page)}
33
      variant='outlined'
37
      variant='outlined'
34
      shape='rounded'
38
      shape='rounded'
35
      isRow={isRow}
-
 
36
      sx={{ display: pages <= 1 ? 'none' : 'initial' }}
39
      isRow={isRow}
37
    />
40
    />
38
  )
41
  )
Línea 39... Línea 42...
39
}
42
}