Skip to content

Commit

Permalink
Merge pull request #487 from etn-ccis/fix/change-password-padding
Browse files Browse the repository at this point in the history
Fix/change password padding
  • Loading branch information
surajeaton authored Sep 27, 2023
2 parents 414c646 + b76f416 commit 30b0ede
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export const ChangePasswordDialog: React.FC<ChangePasswordDialogProps> = (props)
ErrorDialogProps,
loading,
currentPasswordTextFieldProps,
slots = {},
slotProps = {},
} = props;

const [currentInput, setCurrentInput] = useState('');
Expand Down Expand Up @@ -146,6 +148,7 @@ export const ChangePasswordDialog: React.FC<ChangePasswordDialogProps> = (props)
onSubmit={async (): Promise<void> => {
await changePasswordSubmit();
}}
slots={slots}
slotProps={{
SuccessScreen: {
icon: <CheckCircle color="primary" sx={{ fontSize: 100 }} />,
Expand All @@ -163,6 +166,7 @@ export const ChangePasswordDialog: React.FC<ChangePasswordDialogProps> = (props)
onFinish();
},
},
...slotProps.SuccessScreen,
},
}}
showSuccessScreen={showSuccessScreen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const ChangePasswordDialogBase: React.FC<ChangePasswordDialogProps> = (pr
<DialogActions
sx={{
justifyContent: 'flex-end',
p: { md: 3, sm: 2 },
p: { xs: 2, md: 3 },
}}
>
<Grid
Expand Down

0 comments on commit 30b0ede

Please sign in to comment.