diff --git a/src/view/components/ConfirmationDialog/index.tsx b/src/view/components/ConfirmationDialog/index.tsx index cc1f6789..41137538 100644 --- a/src/view/components/ConfirmationDialog/index.tsx +++ b/src/view/components/ConfirmationDialog/index.tsx @@ -4,34 +4,52 @@ import { DialogTitle, DialogContent, DialogActions, - Button + Button, + Typography, + Box } from '@mui/material' +import { title } from 'process' + +const style = { + backgroundColor: 'background.paper' +} interface ConfirmationDialogProps { open: boolean onClose: () => void onConfirm: () => void message?: string + title?: string } -const TEXT_CONFIRM = 'Be sure you want to perform this action?' +const TITLE_CONFIRM = 'Confirm to continue' +const TEXT_CONFIRM = 'Are you sure you want to continue?' function ConfirmationDialog({ open, onClose, onConfirm, - message = TEXT_CONFIRM + message = TEXT_CONFIRM, + title = TITLE_CONFIRM }: ConfirmationDialogProps) { return ( - Confirm Action - -

{message}

-
- - - - + + + + {title} + + + + + {message} + + + + + + +
) } diff --git a/src/view/components/WalletConnectButton/NetworkSelect.tsx b/src/view/components/WalletConnectButton/NetworkSelect.tsx index 2b9edddc..f235c9db 100644 --- a/src/view/components/WalletConnectButton/NetworkSelect.tsx +++ b/src/view/components/WalletConnectButton/NetworkSelect.tsx @@ -112,9 +112,10 @@ export function NetworkSelect({ { closeModal() - router.replace(ROUTES.HOME) onChange(newChainId) }} />