do not use selection, no need
This commit is contained in:
parent
d2563c1647
commit
78b5518185
@ -78,14 +78,12 @@ export function SecretSelectionScreen(): VNode {
|
|||||||
hideNext="Please select version to recover"
|
hideNext="Please select version to recover"
|
||||||
>
|
>
|
||||||
<p>Found versions:</p>
|
<p>Found versions:</p>
|
||||||
{policies.map((x) => (
|
{policies.map((version) => (
|
||||||
<div>
|
<div>
|
||||||
{x.policy_hash} / {x.secret_name}
|
{version.policy_hash} / {version.secret_name}
|
||||||
<button
|
<button
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
await reducer.transition("select_version", {
|
await reducer.transition("select_version", version);
|
||||||
selection: x,
|
|
||||||
});
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Recover
|
Recover
|
||||||
|
Loading…
Reference in New Issue
Block a user