From 4a83e9639d59d4a3116d17d8633ea0d8c69aaa62 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Thu, 11 Nov 2021 13:22:14 -0300
Subject: changes from feedback

better backup and recovery ending screen
async button on modal and solve challenges
use providers name when possible
---
 packages/anastasis-webui/src/pages/home/ConfirmModal.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'packages/anastasis-webui/src/pages/home/ConfirmModal.tsx')

diff --git a/packages/anastasis-webui/src/pages/home/ConfirmModal.tsx b/packages/anastasis-webui/src/pages/home/ConfirmModal.tsx
index cab70de63..e3561d892 100644
--- a/packages/anastasis-webui/src/pages/home/ConfirmModal.tsx
+++ b/packages/anastasis-webui/src/pages/home/ConfirmModal.tsx
@@ -1,10 +1,11 @@
 import { ComponentChildren, h, VNode } from "preact";
+import { AsyncButton } from "../../components/AsyncButton";
 
 export interface ConfirmModelProps {
   active?: boolean;
   description?: string;
   onCancel?: () => void;
-  onConfirm?: () => void;
+  onConfirm?: () => Promise<void>;
   label?: string;
   cancelLabel?: string;
   children?: ComponentChildren;
@@ -33,13 +34,13 @@ export function ConfirmModal({
             {cancelLabel}
           </button>
           <div class="buttons is-right" style={{ width: "100%" }}>
-            <button
+            <AsyncButton
               class={danger ? "button is-danger " : "button is-info "}
               disabled={disabled}
               onClick={onConfirm}
             >
               {label}
-            </button>
+            </AsyncButton>
           </div>
         </footer>
       </div>
-- 
cgit v1.2.3

