mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
updating mfa modal layout
This commit is contained in:
parent
9c83347162
commit
0960c00c72
@ -192,11 +192,13 @@ export const MFAModal = styled.div`
|
|||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
text-aling: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
font-size: 1.0rem;
|
font-size: 1.0rem;
|
||||||
padding-bottom: 8px;
|
padding-bottom: 8px;
|
||||||
|
text-aling: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.secret {
|
.secret {
|
||||||
|
@ -321,7 +321,7 @@ export function useAccountAccess() {
|
|||||||
enableMFA: async () => {
|
enableMFA: async () => {
|
||||||
if (!state.busy) {
|
if (!state.busy) {
|
||||||
try {
|
try {
|
||||||
updateState({ busy: true });
|
updateState({ busy: true, mfaSecret: null, mfaImage: null, mfaCode: '' });
|
||||||
const mfa = await account.actions.enableMFA();
|
const mfa = await account.actions.enableMFA();
|
||||||
updateState({ busy: false, mfaModal: true, mfaError: false, mfaSecret: mfa.secretText, mfaImage: mfa.secretImage, mfaCode: '' });
|
updateState({ busy: false, mfaModal: true, mfaError: false, mfaSecret: mfa.secretText, mfaImage: mfa.secretImage, mfaCode: '' });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user