Skip to content

Commit

Permalink
#2811 removed extra grids
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaryan1203 committed Dec 21, 2024
1 parent 8477bb8 commit 33cdb37
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/frontend/src/pages/HomePage/components/Checklist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,14 @@ const Checklist: React.FC<{ parentChecklists: ChecklistType[]; checklistName?: s
return (
<Box sx={{ backgroundColor: theme.palette.background.paper, borderRadius: 5, p: 2 }}>
<Grid container spacing={2}>
<Grid item xs={12}>
<Grid container justifyContent="space-between" alignItems="center">
<Grid container alignItems="center" sx={{ flexGrow: 1 }}>
<Typography fontSize="2em" fontWeight="bold" sx={{ marginRight: 2 }}>
{checklistName ?? 'General'} Checklist
</Typography>
<Box sx={{ flexGrow: 1, mx: 2 }}>
<OnboardingProgressBar value={51} />
</Box>
<IconButton onClick={toggleShowTasks}>{showTasks ? <KeyboardArrowDown /> : <KeyboardArrowRight />}</IconButton>
</Grid>
</Grid>
<Grid item xs={12} container justifyContent="space-between" alignItems="center" sx={{ flexGrow: 1 }}>
<Typography fontSize="2em" fontWeight="bold" sx={{ marginRight: 2 }}>
{checklistName ?? 'General'} Checklist
</Typography>
<Box sx={{ flexGrow: 1, mx: 2 }}>
<OnboardingProgressBar value={51} />
</Box>
<IconButton onClick={toggleShowTasks}>{showTasks ? <KeyboardArrowDown /> : <KeyboardArrowRight />}</IconButton>
</Grid>
{showTasks && (
<Grid item xs={12}>
Expand Down

0 comments on commit 33cdb37

Please sign in to comment.