Skip to content

Commit

Permalink
Alterando a página de admin para mostrar a quatidade total e arrumand…
Browse files Browse the repository at this point in the history
…o calculo de paginação.
  • Loading branch information
rodrigoborgesmachado committed Feb 2, 2024
1 parent 758baf2 commit 71c3c3e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pages/Admin/DashBoard/DashBoard.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function DashBoard(){
'& .MuiPaginationItem-root': {
color: 'white',

}}} count={parseInt((quantity / quantityPerPage) + 1)} page={parseInt(page)} color="primary" showFirstButton showLastButton onChange={handleChange} />
}}} count={parseInt(Math.ceil(quantity / quantityPerPage))} page={parseInt(page)} color="primary" showFirstButton showLastButton onChange={handleChange} />
</Stack>
:
<>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Admin/Logs/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function Logs(){
</div>
</Modal>
<div className='dados global-infoPanel'>
<h3>Logs:</h3>
<h3>Logs ({quantity}):</h3>
<Table>
<thead>
<tr>
Expand Down Expand Up @@ -173,7 +173,7 @@ function Logs(){
'& .MuiPaginationItem-root': {
color: 'white',

}}} count={parseInt((quantity / quantityPerPage) + 1)} page={parseInt(page)} color="primary" showFirstButton showLastButton onChange={handleChange} />
}}} count={parseInt(Math.ceil(quantity / quantityPerPage))} page={parseInt(page)} color="primary" showFirstButton showLastButton onChange={handleChange} />
</Stack>
:
<>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Admin/Usuarios/Usuario.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function Usuarios(){
</div>
</Modal>
<div className='dados global-infoPanel'>
<h3>Usuarios:</h3>
<h3>Usuarios ({quantity}):</h3>
<Table>
<thead>
<tr>
Expand Down Expand Up @@ -182,7 +182,7 @@ function Usuarios(){
'& .MuiPaginationItem-root': {
color: 'white',

}}} count={parseInt((quantity / quantityPerPage) + 1)} page={parseInt(page)} color="primary" showFirstButton showLastButton onChange={handleChange} />
}}} count={parseInt(Math.ceil(quantity / quantityPerPage))} page={parseInt(page)} color="primary" showFirstButton showLastButton onChange={handleChange} />
</Stack>
:
<>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ListagemProvas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function ListagemProvas() {
'& .MuiPaginationItem-root': {
color: 'white',

}}} count={parseInt((quantity / quantityPerPage) + 1)} page={parseInt(page)} color="primary" showFirstButton showLastButton onChange={handleChange} />
}}} count={parseInt(Math.ceil(quantity / quantityPerPage))} page={parseInt(page)} color="primary" showFirstButton showLastButton onChange={handleChange} />
</Stack>
:
<>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/ListagemQuestoes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function ListagemQuestoes(){
<></>
}
<div className='opcoesQuestoes'>
<h2>Questões</h2>
<h2>Questões (Total: {quantity})</h2>
<div className='opcaoFiltro'>
{
localStorage.getItem(Config.ADMIN) == '1' ?
Expand Down Expand Up @@ -256,7 +256,7 @@ function ListagemQuestoes(){
'& .MuiPaginationItem-root': {
color: 'white',

}}} count={parseInt((quantity / quantityPerPage) + 1)} page={parseInt(page)} color="primary" showFirstButton showLastButton onChange={handleChange} />
}}} count={parseInt(Math.ceil(quantity / quantityPerPage))} page={parseInt(page)} color="primary" showFirstButton showLastButton onChange={handleChange} />
</Stack>
:
<>
Expand Down

0 comments on commit 71c3c3e

Please sign in to comment.