fix logout dialog

This commit is contained in:
Abhinav 2022-06-28 17:36:04 +05:30
parent 8e531d59a0
commit b39be6f1c5
3 changed files with 6 additions and 4 deletions

View file

@ -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;

View file

@ -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,

View file

@ -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',