diff --git a/src/ui/pages/Unseal.tsx b/src/ui/pages/Unseal.tsx index fc0e349..eae84f2 100644 --- a/src/ui/pages/Unseal.tsx +++ b/src/ui/pages/Unseal.tsx @@ -1,47 +1,19 @@ import { Button } from "../elements/Button"; import { Component, JSX } from "preact"; import { DefaultPageProps } from "../../types/DefaultPageProps"; -import { Form } from "../elements/Form"; -import { MarginInline } from "../elements/MarginInline"; import { PageTitle } from "../elements/PageTitle"; -import { QRScanner } from "../elements/QRScanner"; import { route } from "preact-router"; import { setErrorText } from "../../pageUtils"; import { toStr } from "../../utils"; import i18next from "i18next"; +import { UnsealForm } from "./Unseal_Form"; +import { UnsealQR } from "./Unseal_QR"; const UnsealInputModes = { FORM_INPUT: "FORM_INPUT", QR_INPUT: "QR_INPUT", }; -export type UnsealFormInputProps = { - onSubmit: (code: string) => void; -}; - -export function UnsealFormInput(props: UnsealFormInputProps): JSX.Element { - return ( -
{ - props.onSubmit(data.get("unsealKey") as string); - }} - > - - - - -