Skip to content

Commit a1fcdfa

Browse files
committed
Small changes
1 parent 7330826 commit a1fcdfa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/front-end/src/components/dialogs/settingsDialog/settingsDialog.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { SettingSpacer } from '@/components/dialogs/settingsDialog';
22
import { ColorModeSetting, LanguageSetting, TimeZoneSetting } from '@/components/dialogs/settingsDialog/settingsFields';
33
import { Close as CloseIcon } from '@mui/icons-material';
4-
import { Box, Dialog, DialogContent, DialogTitle, Grid, IconButton, styled, useTheme } from '@mui/material';
4+
import { alpha, Box, Dialog, DialogContent, DialogTitle, Grid, IconButton, styled, useTheme } from '@mui/material';
55

66
const BootstrapDialog = styled(Dialog)(({ theme }) => ({
77
backdropFilter: 'blur(5px)',
@@ -21,14 +21,14 @@ const BootstrapDialog = styled(Dialog)(({ theme }) => ({
2121

2222
interface SettingsDialogProps {
2323
open: boolean;
24-
handleClose: () => void;
24+
onClose: () => void;
2525
}
2626

27-
export const SettingsDialog: React.FC<SettingsDialogProps> = ({ open, handleClose }) => {
27+
export const SettingsDialog: React.FC<SettingsDialogProps> = ({ open, onClose }) => {
2828
const Theme = useTheme();
2929

3030
return (
31-
<BootstrapDialog onClose={handleClose} open={open}>
31+
<BootstrapDialog onClose={onClose} open={open}>
3232
<Grid container spacing={2} justifyContent='center' alignItems='center'>
3333
<Grid item xs={8}>
3434
<DialogTitle sx={{ color: Theme.palette.primary.main, pl: '1.5rem', pt: '1.5rem', fontWeight: '700' }}>
@@ -39,7 +39,7 @@ export const SettingsDialog: React.FC<SettingsDialogProps> = ({ open, handleClos
3939
<Box display='flex' justifyContent='flex-end'>
4040
<IconButton
4141
aria-label='close'
42-
onClick={handleClose}
42+
onClick={onClose}
4343
sx={{
4444
color: Theme.palette.primary.main,
4545
mt: '0.5rem',
@@ -51,7 +51,7 @@ export const SettingsDialog: React.FC<SettingsDialogProps> = ({ open, handleClos
5151
</Box>
5252
</Grid>
5353
</Grid>
54-
<DialogContent dividers>
54+
<DialogContent sx={{ borderTop: `1px solid ${alpha(Theme.palette.text.secondary, 0.3)}` }}>
5555
<ColorModeSetting />
5656
<SettingSpacer />
5757
<LanguageSetting />

app/front-end/src/components/layouts/baseLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const BaseLayout: React.FC<Props> = ({ children }) => {
152152
<Box sx={{ width: '95.75%', height: '99.5%', borderRadius: '0.625rem', bgcolor: Theme.palette.secondary.main }}>
153153
{children}
154154
</Box>
155-
<SettingsDialog open={isSettingsDialogOpen} handleClose={handleSettingsDialogClose} />
155+
<SettingsDialog open={isSettingsDialogOpen} onClose={handleSettingsDialogClose} />
156156
</Box>
157157
</Box>
158158
);

0 commit comments

Comments
 (0)