-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-1.0.0' of https://github.com/tekdi/teachers-app …
…into release-1.0.0
- Loading branch information
Showing
14 changed files
with
689 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sample |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
import Box from '@mui/material/Box'; | ||
import Button from '@mui/material/Button'; | ||
import CloseIcon from '@mui/icons-material/Close'; | ||
import { Divider } from '@mui/material'; | ||
import Modal from '@mui/material/Modal'; | ||
import React from 'react'; | ||
import { SessionsModalProps } from '@/utils/Interfaces'; | ||
import Typography from '@mui/material/Typography'; | ||
import { useTheme } from '@mui/material/styles'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
const CenterSessionModal: React.FC<SessionsModalProps> = ({ | ||
children, | ||
open, | ||
handleClose, | ||
title, | ||
primary, | ||
}) => { | ||
const theme = useTheme<any>(); | ||
const { t } = useTranslation(); | ||
const style = { | ||
position: 'absolute', | ||
top: '50%', | ||
left: '50%', | ||
transform: 'translate(-50%, -50%)', | ||
width: '75%', | ||
bgcolor: theme?.palette?.warning['A400'], | ||
boxShadow: 24, | ||
borderRadius: '16px', | ||
'@media (min-width: 600px)': { | ||
width: '450px', | ||
}, | ||
}; | ||
return ( | ||
<> | ||
<div> | ||
<Modal | ||
open={open} | ||
onClose={handleClose} | ||
aria-labelledby="modal-modal-title" | ||
aria-describedby="modal-modal-description" | ||
> | ||
<Box sx={style}> | ||
<Box | ||
display={'flex'} | ||
justifyContent={'space-between'} | ||
sx={{ padding: '18px 16px' }} | ||
> | ||
<Box marginBottom={0}> | ||
<Typography | ||
variant="h2" | ||
sx={{ | ||
color: theme?.palette?.warning['A200'], | ||
fontSize: '14px', | ||
}} | ||
component="h2" | ||
> | ||
{title} | ||
</Typography> | ||
</Box> | ||
<CloseIcon | ||
onClick={handleClose} | ||
sx={{ | ||
cursor: 'pointer', | ||
color: theme?.palette?.warning['A200'], | ||
}} | ||
/> | ||
</Box> | ||
<Divider /> | ||
{children} | ||
<Divider /> | ||
<Box sx={{ padding: '20px 16px' }}> | ||
<Button | ||
variant="contained" | ||
color="primary" | ||
sx={{ | ||
'&.Mui-disabled': { | ||
backgroundColor: theme?.palette?.primary?.main, | ||
}, | ||
minWidth: '84px', | ||
height: '2.5rem', | ||
padding: theme.spacing(1), | ||
fontWeight: '500', | ||
width: '100%', | ||
}} | ||
> | ||
{primary} | ||
</Button> | ||
</Box> | ||
</Box> | ||
</Modal> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default CenterSessionModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { | ||
Box, | ||
FormControl, | ||
FormControlLabel, | ||
FormLabel, | ||
Radio, | ||
RadioGroup, | ||
} from '@mui/material'; | ||
|
||
import React from 'react'; | ||
import { useTheme } from '@mui/material/styles'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
const DeleteSession = () => { | ||
const theme = useTheme<any>(); | ||
const { t } = useTranslation(); | ||
return ( | ||
<> | ||
<Box sx={{ padding: '8px 16px' }}> | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
mt: 2, | ||
}} | ||
> | ||
<Box>{t('CENTER_SESSION.THIS_SESSION')}</Box> | ||
<Radio style={{ color: theme?.palette?.warning['300'] }} /> | ||
</Box> | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
my: 2, | ||
}} | ||
> | ||
<Box>{t('CENTER_SESSION.FOLLOWING_SESSIONS')}</Box> | ||
<Radio style={{ color: theme?.palette?.warning['300'] }} /> | ||
</Box> | ||
</Box> | ||
</> | ||
); | ||
}; | ||
|
||
export default DeleteSession; |
Oops, something went wrong.