Skip to content

Commit

Permalink
fix: scrolling to allow viewing the bottom of the page
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynndp committed Nov 10, 2021
1 parent 6c3dae0 commit 697d667
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions src/components/Growers/Growers.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,43 +71,41 @@ const Growers = (props) => {
);

return (
<>
<Grid container direction="column" className={classes.outer}>
<Grid item className={classes.body}>
<Grid container>
<Grid item container style={{ height: '100%', overflow: 'auto' }}>
<Grid item className={classes.body}>
<Grid container>
<Grid
item
style={{
width: '100%',
}}
>
<Grid
item
style={{
width: '100%',
}}
container
justify="space-between"
alignItems="center"
className={classes.title}
>
<Grid
container
justify="space-between"
alignItems="center"
className={classes.title}
>
<Grid item>
<Typography variant="h5">Growers</Typography>
</Grid>
<Grid item>{pagination}</Grid>
<Grid item>
<Typography variant="h5">Growers</Typography>
</Grid>
</Grid>
<Grid item container direction="row" justify="center">
{growersItems}
<Grid item>{pagination}</Grid>
</Grid>
</Grid>
<Grid container className={classes.page} justify="flex-end">
{pagination}
<Grid item container direction="row" justify="center">
{growersItems}
</Grid>
</Grid>
<Grid container className={classes.page} justify="flex-end">
{pagination}
</Grid>
</Grid>
<GrowerDetail
open={isDetailShown}
growerId={growerDetail.id}
onClose={() => setDetailShown(false)}
/>
</>
</Grid>
);
};

Expand Down

0 comments on commit 697d667

Please sign in to comment.