Wrap
This commit is contained in:
parent
27127ff3d4
commit
55bdb070ce
2 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue