diff options
author | Sebastian <sebasjm@gmail.com> | 2022-01-24 14:39:27 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-01-24 14:39:27 -0300 |
commit | 2f291847b08440c6da63351a0cfec482682170ae (patch) | |
tree | 9482799f9d4e5e002a0a54567fc3331a1081bf4f /packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx | |
parent | 882d6b3710f82d85b2129f09c63f9db45985ef64 (diff) | |
download | wallet-core-2f291847b08440c6da63351a0cfec482682170ae.tar.xz |
fixing import to anastasis-core
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx index 7e517abfe..076d205b6 100644 --- a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx @@ -1,4 +1,7 @@ -import { AuthenticationProviderStatus, AuthenticationProviderStatusOk } from "anastasis-core"; +import { + AuthenticationProviderStatus, + AuthenticationProviderStatusOk, +} from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { AsyncButton } from "../../components/AsyncButton"; @@ -68,15 +71,15 @@ export function SecretSelectionScreen(): VNode { return <AddingProviderScreen onCancel={() => setManageProvider(false)} />; } - const provierInfo = provs[recoveryDocument.provider_url] as AuthenticationProviderStatusOk + const provierInfo = provs[ + recoveryDocument.provider_url + ] as AuthenticationProviderStatusOk; return ( <AnastasisClientFrame title="Recovery: Select secret"> <div class="columns"> <div class="column"> <div class="box" style={{ border: "2px solid green" }}> - <h1 class="subtitle"> - {provierInfo.business_name} - </h1> + <h1 class="subtitle">{provierInfo.business_name}</h1> <div class="block"> {currentVersion === 0 ? ( <p>Set to recover the latest version</p> @@ -135,11 +138,13 @@ function ChooseAnotherProviderScreen({ Choose a provider{" "} </option> {Object.keys(providers).map((url) => { - const p = providers[url] - if (!("methods" in p)) return null - return <option key={url} value={url}> - {p.business_name} - </option> + const p = providers[url]; + if (!("methods" in p)) return null; + return ( + <option key={url} value={url}> + {p.business_name} + </option> + ); })} </select> <div class="icon is-small is-left"> @@ -169,7 +174,9 @@ function SelectOtherVersionProviderScreen({ const [otherVersion, setOtherVersion] = useState( version > 0 ? String(version) : "", ); - const otherProviderInfo = providers[otherProvider] as AuthenticationProviderStatusOk + const otherProviderInfo = providers[ + otherProvider + ] as AuthenticationProviderStatusOk; return ( <AnastasisClientFrame hideNav title="Recovery: Select secret"> @@ -199,11 +206,13 @@ function SelectOtherVersionProviderScreen({ Choose a provider{" "} </option> {Object.keys(providers).map((url) => { - const p = providers[url] - if (!("methods" in p)) return null - return <option key={url} value={url}> - {p.business_name} - </option> + const p = providers[url]; + if (!("methods" in p)) return null; + return ( + <option key={url} value={url}> + {p.business_name} + </option> + ); })} </select> <div class="icon is-small is-left"> |