diff options
author | Sebastian <sebasjm@gmail.com> | 2022-06-06 00:54:55 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-06-06 00:54:55 -0300 |
commit | e96358c5554794903f451b77555382d3622a9ece (patch) | |
tree | 76e1ff5d8cc5f5f51710716422192389e6c07929 /packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx | |
parent | e2a987a18255aa95157ab8bf19a8f09f8833a472 (diff) | |
download | wallet-core-e96358c5554794903f451b77555382d3622a9ece.tar.xz |
eslint
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx index 2d1a51aa3..c90ced7c2 100644 --- a/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/SecretSelectionScreen.tsx @@ -1,15 +1,14 @@ import { AuthenticationProviderStatus, AuthenticationProviderStatusOk, - PolicyMetaInfo, } from "@gnu-taler/anastasis-core"; import { h, VNode } from "preact"; import { useEffect, useState } from "preact/hooks"; -import { AsyncButton } from "../../components/AsyncButton"; -import { PhoneNumberInput } from "../../components/fields/NumberInput"; -import { useAnastasisContext } from "../../context/anastasis"; -import { AddingProviderScreen } from "./AddingProviderScreen"; -import { AnastasisClientFrame } from "./index"; +import { AsyncButton } from "../../components/AsyncButton.js"; +import { PhoneNumberInput } from "../../components/fields/NumberInput.js"; +import { useAnastasisContext } from "../../context/anastasis.js"; +import { AddingProviderScreen } from "./AddingProviderScreen.js"; +import { AnastasisClientFrame } from "./index.js"; export function SecretSelectionScreen(): VNode { const [selectingVersion, setSelectingVersion] = useState<boolean>(false); @@ -67,7 +66,7 @@ export function SecretSelectionScreen(): VNode { <ChooseAnotherProviderScreen providers={provs} selected="" - onChange={(newProv) => () => {}} + onChange={() => null} ></ChooseAnotherProviderScreen> ); } @@ -78,8 +77,8 @@ export function SecretSelectionScreen(): VNode { hideNext="Please select version to recover" > <p>Found versions:</p> - {policies.map((version) => ( - <div> + {policies.map((version, i) => ( + <div key={i}> {version.policy_hash} / {version.secret_name} <button onClick={async () => { @@ -184,7 +183,7 @@ export function OldSecretSelectionScreen(): VNode { </div> <div class="buttons is-right"> <button class="button" onClick={(e) => setSelectingVersion(true)}> - Change secret's version + Change secret's version </button> </div> </div> |