From 50b95a790e0bb4bbdaf957b8366a4473e9f7f883 Mon Sep 17 00:00:00 2001 From: bagusajisaputroo Date: Mon, 7 Apr 2025 23:29:43 +0700 Subject: [PATCH] remove field status and action --- .../hooks/ManageWalletHistoryContext.tsx | 51 +------------------ 1 file changed, 1 insertion(+), 50 deletions(-) diff --git a/src/pages/wallet/wallet-history/hooks/ManageWalletHistoryContext.tsx b/src/pages/wallet/wallet-history/hooks/ManageWalletHistoryContext.tsx index 9c05720..95b7aca 100644 --- a/src/pages/wallet/wallet-history/hooks/ManageWalletHistoryContext.tsx +++ b/src/pages/wallet/wallet-history/hooks/ManageWalletHistoryContext.tsx @@ -173,57 +173,8 @@ const ManageWalletContextProvider = ({ children }: { children: React.ReactNode } meta: { headerClassName: 'w-[200px]' } - }, - { - accessorFn: (row) => row.status, - id: 'status', - header: ({ column }) => , - enableSorting: false, - enableHiding: false, - cell: ({ row }) => { - const isActive = row.original.status === 'Y'; - - return ( - - {isActive ? 'Active' : 'Inactive'} - - ); - }, - meta: { - headerClassName: 'w-[100px]', - cellClassName: 'text-center' - } - }, - { - id: 'actions', - header: ({ column }) => , - cell: (data) => { - const row = data.row.original; - return ( - <> - - - - ); - }, - meta: { - headerClassName: 'w-[150px]' - } } + ], [] );