1
1
import { SettingSpacer } from '@/components/dialogs/settingsDialog' ;
2
2
import { ColorModeSetting , LanguageSetting , TimeZoneSetting } from '@/components/dialogs/settingsDialog/settingsFields' ;
3
3
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' ;
5
5
6
6
const BootstrapDialog = styled ( Dialog ) ( ( { theme } ) => ( {
7
7
backdropFilter : 'blur(5px)' ,
@@ -21,14 +21,14 @@ const BootstrapDialog = styled(Dialog)(({ theme }) => ({
21
21
22
22
interface SettingsDialogProps {
23
23
open : boolean ;
24
- handleClose : ( ) => void ;
24
+ onClose : ( ) => void ;
25
25
}
26
26
27
- export const SettingsDialog : React . FC < SettingsDialogProps > = ( { open, handleClose } ) => {
27
+ export const SettingsDialog : React . FC < SettingsDialogProps > = ( { open, onClose } ) => {
28
28
const Theme = useTheme ( ) ;
29
29
30
30
return (
31
- < BootstrapDialog onClose = { handleClose } open = { open } >
31
+ < BootstrapDialog onClose = { onClose } open = { open } >
32
32
< Grid container spacing = { 2 } justifyContent = 'center' alignItems = 'center' >
33
33
< Grid item xs = { 8 } >
34
34
< 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
39
39
< Box display = 'flex' justifyContent = 'flex-end' >
40
40
< IconButton
41
41
aria-label = 'close'
42
- onClick = { handleClose }
42
+ onClick = { onClose }
43
43
sx = { {
44
44
color : Theme . palette . primary . main ,
45
45
mt : '0.5rem' ,
@@ -51,7 +51,7 @@ export const SettingsDialog: React.FC<SettingsDialogProps> = ({ open, handleClos
51
51
</ Box >
52
52
</ Grid >
53
53
</ Grid >
54
- < DialogContent dividers >
54
+ < DialogContent sx = { { borderTop : `1px solid ${ alpha ( Theme . palette . text . secondary , 0.3 ) } ` } } >
55
55
< ColorModeSetting />
56
56
< SettingSpacer />
57
57
< LanguageSetting />
0 commit comments