From 9dd625ee5c9e07c61ef2d9c3f4470e5dd9bdc003 Mon Sep 17 00:00:00 2001 From: Corban Riley Date: Wed, 1 May 2024 10:38:54 -0400 Subject: [PATCH] Removing confirmationToggle from next waas, must be set in config --- .../next/src/app/components/Connected.tsx | 32 ------------------- examples/next/src/app/config.ts | 5 +-- examples/react/src/config.ts | 1 - 3 files changed, 3 insertions(+), 35 deletions(-) diff --git a/examples/next/src/app/components/Connected.tsx b/examples/next/src/app/components/Connected.tsx index c337bfce..735df42e 100644 --- a/examples/next/src/app/components/Connected.tsx +++ b/examples/next/src/app/components/Connected.tsx @@ -42,8 +42,6 @@ export const Connected = () => { const [lastTxnDataHash, setLastTxnDataHash] = useState() const [lastTxnDataHash2, setLastTxnDataHash2] = useState() - const [confirmationEnabled, setConfirmationEnabled] = useState(localStorage.getItem('confirmationEnabled') === 'true') - const [pendingFeeOptionConfirmation, confirmPendingFeeOption, rejectPendingFeeOption] = useWaasFeeOptions() const [selectedFeeOptionTokenName, setSelectedFeeOptionTokenName] = useState() @@ -404,36 +402,6 @@ export const Connected = () => { )} - {isWaasConnection && ( - - - - Confirmations - - - - { - if (checked) { - localStorage.setItem('confirmationEnabled', 'true') - setConfirmationEnabled(true) - } else { - localStorage.removeItem('confirmationEnabled') - setConfirmationEnabled(false) - } - - await delay(300) - - window.location.reload() - }} - /> - - - - )} -