fix logout dialog
This commit is contained in:
parent
8e531d59a0
commit
b39be6f1c5
|
@ -3,6 +3,7 @@ import { Dialog, styled } from '@mui/material';
|
||||||
const DialogBoxBase = styled(Dialog)(({ theme }) => ({
|
const DialogBoxBase = styled(Dialog)(({ theme }) => ({
|
||||||
'& .MuiDialog-paper': {
|
'& .MuiDialog-paper': {
|
||||||
padding: theme.spacing(1, 1.5),
|
padding: theme.spacing(1, 1.5),
|
||||||
|
maxWidth: '346px',
|
||||||
},
|
},
|
||||||
'& .MuiDialogTitle-root': {
|
'& .MuiDialogTitle-root': {
|
||||||
padding: theme.spacing(2),
|
padding: theme.spacing(2),
|
||||||
|
@ -14,6 +15,9 @@ const DialogBoxBase = styled(Dialog)(({ theme }) => ({
|
||||||
'.MuiDialogTitle-root + .MuiDialogContent-root': {
|
'.MuiDialogTitle-root + .MuiDialogContent-root': {
|
||||||
paddingTop: 0,
|
paddingTop: 0,
|
||||||
},
|
},
|
||||||
|
'.MuiDialogTitle-root + .MuiDialogActions-root': {
|
||||||
|
paddingTop: theme.spacing(3),
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export default DialogBoxBase;
|
export default DialogBoxBase;
|
||||||
|
|
|
@ -10,9 +10,7 @@ export default function ExitSection() {
|
||||||
|
|
||||||
const confirmLogout = () => {
|
const confirmLogout = () => {
|
||||||
setDialogMessage({
|
setDialogMessage({
|
||||||
title: `${constants.CONFIRM} ${constants.LOGOUT}`,
|
title: constants.LOGOUT_MESSAGE,
|
||||||
content: constants.LOGOUT_MESSAGE,
|
|
||||||
|
|
||||||
proceed: {
|
proceed: {
|
||||||
text: constants.LOGOUT,
|
text: constants.LOGOUT,
|
||||||
action: logoutUser,
|
action: logoutUser,
|
||||||
|
|
|
@ -200,7 +200,7 @@ const englishConstants = {
|
||||||
<p>Your request will be processed within 72 hours.</p>
|
<p>Your request will be processed within 72 hours.</p>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
LOGOUT_MESSAGE: 'Sure you want to logout?',
|
LOGOUT_MESSAGE: 'Are you sure you want to logout?',
|
||||||
CHANGE: 'Change',
|
CHANGE: 'Change',
|
||||||
CHANGE_EMAIL: 'Change email',
|
CHANGE_EMAIL: 'Change email',
|
||||||
OK: 'Ok',
|
OK: 'Ok',
|
||||||
|
|
Loading…
Reference in a new issue