Secret found, you can select another version or continue to the challenges solving
@@ -140,3 +74,93 @@ export function SecretSelectionScreen(): VNode {
);
}
+
+
+function ChooseAnotherProviderScreen({ providers, selected, onChange }: { selected: string; providers: string[]; onChange: (prov: string) => void }): VNode {
+ return (
+
+ No recovery document found, try with another provider
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
+
+function SelectOtherVersionProviderScreen({ providers, provider, version, onConfirm, onCancel }: { onCancel: () => void; provider: string; version: number; providers: string[]; onConfirm: (prov: string, v: number) => Promise
; }): VNode {
+ const [otherProvider, setOtherProvider] = useState(provider);
+ const [otherVersion, setOtherVersion] = useState(`${version}`);
+
+ return (
+
+
+
+
+
Provider {otherProvider}
+
+ {version === 0 ?
+ Set to recover the latest version
+
:
+ Set to recover the version number {version}
+
}
+
Specify other version below or use the latest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ .
+
+
+
+
+ );
+
+}
diff --git a/packages/anastasis-webui/src/pages/home/SolveScreen.tsx b/packages/anastasis-webui/src/pages/home/SolveScreen.tsx
index fae1b5631..bc1a88db3 100644
--- a/packages/anastasis-webui/src/pages/home/SolveScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/SolveScreen.tsx
@@ -137,7 +137,7 @@ export function SolveScreen(): VNode {
-
+
Confirm
diff --git a/packages/anastasis-webui/src/pages/home/index.tsx b/packages/anastasis-webui/src/pages/home/index.tsx
index 6ebc2a6e9..07bc7c604 100644
--- a/packages/anastasis-webui/src/pages/home/index.tsx
+++ b/packages/anastasis-webui/src/pages/home/index.tsx
@@ -120,7 +120,7 @@ export function AnastasisClientFrame(props: AnastasisClientFrameProps): VNode {
{!props.hideNav ? (
Fatal: Reducer must be in context.
;
@@ -228,7 +228,7 @@ const AnastasisClientImpl: FunctionalComponent = () => {
);
-};
+}
/**
* Show a dismissible error banner if there is a current error.