Skip to content

Commit

Permalink
Fixes: Improved accuracy of number & added a table for all generators
Browse files Browse the repository at this point in the history
  • Loading branch information
otobongfp committed May 16, 2024
1 parent ab88698 commit eeaad37
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/pages/Generators.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const Generators = () => {
variant={all === "all" ? "outlined" : "contained"}
size="small"
>
All
All time
</Button>

<Button
Expand Down Expand Up @@ -225,7 +225,7 @@ const Generators = () => {
{all != "all" ? (
<Card sx={{ margin: 2 }}>
<CardContent>
<div style={{ height: 600, width: "100%" }}>
<div style={{ width: "100%" }}>
<Box
sx={{ display: "flex", justifyContent: "flex-end", mb: 2 }}
>
Expand Down Expand Up @@ -281,14 +281,16 @@ const Generators = () => {
}}
/>
</Box>
<DataGrid
rows={searchAllGenerators}
columns={allGeneratorsColumn}
pageSize={5}
rowsPerPageOptions={[5]}
checkboxSelection={false}
disableSelectionOnClick
/>
<div style={{ height: 600 }}>
<DataGrid
rows={searchAllGenerators}
columns={allGeneratorsColumn}
pageSize={60}
rowsPerPageOptions={[15, 30, 60]}
checkboxSelection={false}
disableSelectionOnClick
/>
</div>
</div>
</CardContent>
</Card>
Expand Down

0 comments on commit eeaad37

Please sign in to comment.