This commit is contained in:
Manav Rathi 2024-05-26 19:14:35 +05:30
parent 27127ff3d4
commit 55bdb070ce
No known key found for this signature in database
2 changed files with 7 additions and 5 deletions

View file

@ -6,7 +6,7 @@ import { LS_KEYS, getData, setData } from "@ente/shared/storage/localStorage";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import { useEffect } from "react"; import { useEffect } from "react";
const PasskeysFinishPage = () => { const Page = () => {
const router = useRouter(); const router = useRouter();
const init = async () => { const init = async () => {
@ -43,4 +43,4 @@ const PasskeysFinishPage = () => {
); );
}; };
export default PasskeysFinishPage; export default Page;

View file

@ -29,10 +29,10 @@ const bip39 = require("bip39");
// mobile client library only supports english. // mobile client library only supports english.
bip39.setDefaultWordlist("english"); bip39.setDefaultWordlist("english");
export default function Recover({ const Page: React.FC<PageProps> = ({
appContext, appContext,
twoFactorType = TwoFactorType.TOTP, twoFactorType = TwoFactorType.TOTP,
}: PageProps) { }) => {
const { logout } = appContext; const { logout } = appContext;
const [encryptedTwoFactorSecret, setEncryptedTwoFactorSecret] = const [encryptedTwoFactorSecret, setEncryptedTwoFactorSecret] =
@ -182,4 +182,6 @@ export default function Recover({
</FormPaper> </FormPaper>
</VerticallyCentered> </VerticallyCentered>
); );
} };
export default Page;