From a74bd998f1702111358bb48305654990b6a02c84 Mon Sep 17 00:00:00 2001
From: Florian Dold
Date: Wed, 13 Apr 2022 08:51:27 +0200
Subject: anastasis-webui: remove button for resetting policies
---
.../src/pages/home/ReviewPoliciesScreen.tsx | 27 ----------------------
1 file changed, 27 deletions(-)
(limited to 'packages')
diff --git a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx
index 5d75d5aaa..6c5958d8f 100644
--- a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx
@@ -10,7 +10,6 @@ import { AnastasisClientFrame } from "./index";
export function ReviewPoliciesScreen(): VNode {
const [editingPolicy, setEditingPolicy] = useState();
- const [confirmReset, setConfirmReset] = useState(false);
const reducer = useAnastasisContext();
if (!reducer) {
return no reducer in context
;
@@ -40,14 +39,6 @@ export function ReviewPoliciesScreen(): VNode {
/>
);
}
- async function resetPolicies(): Promise {
- if (!reducer) return Promise.resolve();
- return reducer.runTransaction(async (tx) => {
- await tx.transition("back", {});
- await tx.transition("next", {});
- setConfirmReset(false);
- });
- }
const errors = policies.length < 1 ? "Need more policies" : undefined;
return (
@@ -69,9 +60,6 @@ export function ReviewPoliciesScreen(): VNode {
)}
-
setConfirmReset(true)}>
- Reset policies
-