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 }) => ({
|
||||
'& .MuiDialog-paper': {
|
||||
padding: theme.spacing(1, 1.5),
|
||||
maxWidth: '346px',
|
||||
},
|
||||
'& .MuiDialogTitle-root': {
|
||||
padding: theme.spacing(2),
|
||||
|
@ -14,6 +15,9 @@ const DialogBoxBase = styled(Dialog)(({ theme }) => ({
|
|||
'.MuiDialogTitle-root + .MuiDialogContent-root': {
|
||||
paddingTop: 0,
|
||||
},
|
||||
'.MuiDialogTitle-root + .MuiDialogActions-root': {
|
||||
paddingTop: theme.spacing(3),
|
||||
},
|
||||
}));
|
||||
|
||||
export default DialogBoxBase;
|
||||
|
|
|
@ -10,9 +10,7 @@ export default function ExitSection() {
|
|||
|
||||
const confirmLogout = () => {
|
||||
setDialogMessage({
|
||||
title: `${constants.CONFIRM} ${constants.LOGOUT}`,
|
||||
content: constants.LOGOUT_MESSAGE,
|
||||
|
||||
title: constants.LOGOUT_MESSAGE,
|
||||
proceed: {
|
||||
text: constants.LOGOUT,
|
||||
action: logoutUser,
|
||||
|
|
|
@ -200,7 +200,7 @@ const englishConstants = {
|
|||
<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_EMAIL: 'Change email',
|
||||
OK: 'Ok',
|
||||
|
|
Loading…
Reference in a new issue