Skip to content

Commit

Permalink
Add Stack to display without IEP to correct CSS change from last comm…
Browse files Browse the repository at this point in the history
…it. Delete inline styles to the whole page.

Co-authored-by: Brandon Cruz-Youll <brandon.cruzyoull@gmail.com>
  • Loading branch information
BrettEastman and BeeSeeWhy committed Oct 31, 2023
1 parent 637dfb6 commit 2e43c3a
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions src/pages/students/[student_id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,7 @@ const ViewStudentPage = () => {
}

return (
<Stack
spacing={2}
sx={{
display: "flex",
flexDirection: "column",
alignItems: "center",
}}
>
<Stack spacing={2}>
<Container
className={$StudentPage.studentInfoContainer}
sx={{ marginBottom: "1rem" }}
Expand Down Expand Up @@ -281,24 +274,26 @@ const ViewStudentPage = () => {
</Container>
</Stack>
) : !activeIep ? (
<Container className={$StudentPage.noIepContainer}>
<Box className={$StudentPage.noIepBox}>
<Image
src={noGoals}
alt="no IEP image"
className={$Image.fitContent}
/>
<p className={$StudentPage.textSpacing}>
This student does not have an active IEP. Please create one.
</p>
<button
onClick={() => setCreateIepModal(true)}
className={`${$button.default}`}
>
Create IEP
</button>
</Box>
</Container>
<Stack>
<Container className={$StudentPage.noIepContainer}>
<Box className={$StudentPage.noIepBox}>
<Image
src={noGoals}
alt="no IEP image"
className={$Image.fitContent}
/>
<p className={$StudentPage.textSpacing}>
This student does not have an active IEP. Please create one.
</p>
<button
onClick={() => setCreateIepModal(true)}
className={`${$button.default}`}
>
Create IEP
</button>
</Box>
</Container>
</Stack>
) : (
// Active IEP is in db
<Iep iep_id={activeIep.iep_id} />
Expand Down

0 comments on commit 2e43c3a

Please sign in to comment.