From c40ac35ac8a81bd1088f42d1672b4bfaf159846e Mon Sep 17 00:00:00 2001 From: Aaron Cook Date: Tue, 29 Aug 2023 15:53:19 +0200 Subject: [PATCH] fix: disabled batch sidebar buttons when not owner (#2454) * fix: disabled batch sidebar buttons when not owner * fix: allow spending limits * fix: remove spending limit access --- src/components/batch/BatchSidebar/index.tsx | 55 +++++++++++++-------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/src/components/batch/BatchSidebar/index.tsx b/src/components/batch/BatchSidebar/index.tsx index 32f51b0814..4edbbca106 100644 --- a/src/components/batch/BatchSidebar/index.tsx +++ b/src/components/batch/BatchSidebar/index.tsx @@ -10,6 +10,7 @@ import ConfirmBatchFlow from '@/components/tx-flow/flows/ConfirmBatch' import Track from '@/components/common/Track' import { BATCH_EVENTS } from '@/services/analytics' import { BatchReorder } from './BatchTxList' +import CheckWallet from '@/components/common/CheckWallet' import PlusIcon from '@/public/images/common/plus.svg' import EmptyBatch from './EmptyBatch' @@ -74,33 +75,45 @@ const BatchSidebar = ({ isOpen, onToggle }: { isOpen: boolean; onToggle: (open: - - - + + {(isOk) => ( + + + + )} + - - - + + {(isOk) => ( + + + + )} + ) : ( - - - + + {(isOk) => ( + + + + )} + )}