Skip to content

Commit

Permalink
dialog ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
carolineychen8 committed Dec 9, 2023
1 parent 2bce371 commit 6f93207
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 12 deletions.
17 changes: 15 additions & 2 deletions client/src/SchoolProfile/AddSchoolDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,25 @@ function AddSchoolDialog({ open, setOpen, addSchool }: AddSchoolProps) {
};

return (
<Dialog fullWidth maxWidth="md" open={open} onClose={() => setOpen(false)}>
<Dialog
open={open}
onClose={() => setOpen(false)}
sx={{
'.MuiPaper-root': {
padding: '1rem 3rem',
minWidth: '50vw',
},
}}
>
<DialogTitle sx={{ textAlign: 'center' }}>Add School</DialogTitle>
<DialogActions
sx={{ display: 'flex', flexDirection: 'row', justifyContent: 'center' }}
>
<Stack direction="column" spacing={2}>
<Stack
direction="column"
spacing={2}
sx={{ paddingBottom: '2rem', width: '100%' }}
>
<TextField label="School Name" onChange={handleChangeName} />
<br />
<TextField label="Info" onChange={handleChangeInfo} />
Expand Down
19 changes: 12 additions & 7 deletions client/src/SchoolProfile/DeleteSchoolDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,21 @@ function DeleteSchoolDialog({
};

return (
<Dialog fullWidth maxWidth="md" open={open} onClose={() => setOpen(false)}>
<DialogTitle sx={{ textAlign: 'center' }}>Delete School</DialogTitle>
<Dialog
open={open}
onClose={() => setOpen(false)}
sx={{
'.MuiPaper-root': {
padding: '1rem 3rem',
minWidth: '50vw',
},
}}
>
<DialogTitle sx={{ textAlign: 'center' }}>Delete Entry</DialogTitle>
<DialogActions
sx={{ display: 'flex', flexDirection: 'row', justifyContent: 'center' }}
>
<Stack
direction="column"
spacing={2}
sx={{ width: '50%', justifyContent: 'space-between' }}
>
<Stack spacing={2} sx={{ paddingBottom: '2rem', width: '100%' }}>
<Select
value={schoolId}
onChange={(event) => setSchool(event.target.value as string)}
Expand Down
17 changes: 14 additions & 3 deletions client/src/SchoolProfile/EditSchoolDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,23 @@ function EditSchoolDialog({
};

return (
<Dialog fullWidth maxWidth="md" open={open} onClose={() => setOpen(false)}>
<DialogTitle sx={{ textAlign: 'center' }}>Edit Entry</DialogTitle>
<Dialog
open={open}
onClose={() => setOpen(false)}
sx={{
'.MuiPaper-root': {
padding: '1rem 3rem',
minWidth: '50vw',
},
}}
>
<DialogTitle sx={{ textAlign: 'center', fontSize: '18px' }}>
Edit Entry
</DialogTitle>
<DialogActions
sx={{ display: 'flex', flexDirection: 'row', justifyContent: 'center' }}
>
<Stack spacing={2}>
<Stack spacing={2} sx={{ paddingBottom: '2rem', width: '100%' }}>
<FormControl
variant="outlined"
sx={{
Expand Down

0 comments on commit 6f93207

Please sign in to comment.