From 5e3d2273d13de7b8d3200d8a34be24df3f52eb8d Mon Sep 17 00:00:00 2001 From: rstubryan Date: Fri, 27 Feb 2026 11:25:37 +0700 Subject: [PATCH] refactor(FE): Refactor RowOptionsMenu to use PopoverButton and PopoverContent --- src/components/pages/finance/FinanceTable.tsx | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/components/pages/finance/FinanceTable.tsx b/src/components/pages/finance/FinanceTable.tsx index 988928e3..8ef90c3d 100644 --- a/src/components/pages/finance/FinanceTable.tsx +++ b/src/components/pages/finance/FinanceTable.tsx @@ -34,6 +34,8 @@ import { isResponseSuccess } from '@/lib/api-helper'; import { BankApi, CustomerApi, SupplierApi } from '@/services/api/master-data'; import { Bank } from '@/types/api/master-data/bank'; import Modal, { useModal } from '@/components/Modal'; +import PopoverButton from '@/components/popover/PopoverButton'; +import PopoverContent from '@/components/popover/PopoverContent'; import ConfirmationModal from '@/components/modal/ConfirmationModal'; import toast from 'react-hot-toast'; import RequirePermission from '@/components/helper/RequirePermission'; @@ -64,27 +66,21 @@ const RowOptionsMenu = ({ return (
- + + -
-
+
); };