feat: re-work modal behaviour to be more natural

This commit is contained in:
Paul Makles
2022-06-18 11:22:37 +01:00
parent 63d5f6bb7d
commit 0ee7b73d61
11 changed files with 72 additions and 12 deletions

View File

@@ -31,6 +31,7 @@ export default function MFAEnableTOTP({
secret,
callback,
onClose,
signal,
}: ModalProps<"mfa_enable_totp">) {
const uri = `otpauth://totp/Revolt:${identifier}?secret=${secret}&issuer=Revolt`;
const [value, setValue] = useState("");
@@ -61,7 +62,9 @@ export default function MFAEnableTOTP({
onClose={() => {
callback();
onClose();
}}>
}}
signal={signal}
nonDismissable>
<Column>
<Centred>
<Qr>