diff --git a/web/src/views/DeviceRegistration/RegisterOneTimePassword.tsx b/web/src/views/DeviceRegistration/RegisterOneTimePassword.tsx index 99a029d0..04101107 100644 --- a/web/src/views/DeviceRegistration/RegisterOneTimePassword.tsx +++ b/web/src/views/DeviceRegistration/RegisterOneTimePassword.tsx @@ -20,7 +20,6 @@ const RegisterOneTimePassword = function () { const style = useStyles(); const history = useHistory(); const location = useLocation(); - // The secret retrieved from the API is all is ok. const [secretURL, setSecretURL] = useState("empty"); const [secretBase32, setSecretBase32] = useState(undefined as string | undefined); @@ -86,9 +85,9 @@ const RegisterOneTimePassword = function () { appleStoreLink={GoogleAuthenticator.appleStore} /> -
+
- + {!hasErrored && isLoading ? : null} {hasErrored ? : null} @@ -132,6 +131,8 @@ const useStyles = makeStyles((theme) => ({ qrcode: { marginTop: theme.spacing(2), marginBottom: theme.spacing(2), + padding: theme.spacing(), + backgroundColor: "white", }, fuzzy: { filter: "blur(10px)",