From e1ff9d03ecfdfa6b614d3e1fbd015336e86327fd Mon Sep 17 00:00:00 2001 From: Wikzyy Date: Sat, 22 Mar 2025 11:29:03 +0700 Subject: [PATCH] fix remove display id on table --- .../aldeias/hooks/ManageAldeiasContext.tsx | 10 ---------- .../hooks/ManageConversionContext.tsx | 10 ---------- .../hooks/ManageMunicipiosContext.tsx | 10 ---------- .../hooks/ManagePostoAdmsContext.tsx | 11 ---------- .../products/hooks/ManageProductsContext.tsx | 10 ---------- .../hooks/ManageProfessionContext.tsx | 10 ---------- .../provider/hooks/ManageProviderContext.tsx | 10 ---------- .../master/sucos/hooks/ManageSucosContext.tsx | 10 ---------- .../hooks/ManageWalletRuleContext.tsx | 20 ------------------- 9 files changed, 101 deletions(-) diff --git a/src/pages/master/aldeias/hooks/ManageAldeiasContext.tsx b/src/pages/master/aldeias/hooks/ManageAldeiasContext.tsx index f0b9aff..6dcce41 100644 --- a/src/pages/master/aldeias/hooks/ManageAldeiasContext.tsx +++ b/src/pages/master/aldeias/hooks/ManageAldeiasContext.tsx @@ -77,16 +77,6 @@ const ManageAldeiasContextProvider = ({ children }: { children: React.ReactNode const columns = useMemo[]>( () => [ - { - accessorFn: (row) => row.id, - id: 'id', - header: ({ column }) => , - enableSorting: true, - enableHiding: false, - meta: { - headerClassName: 'w-[100px]' - } - }, { accessorFn: (row) => row.name, id: 'name', diff --git a/src/pages/master/conversion/hooks/ManageConversionContext.tsx b/src/pages/master/conversion/hooks/ManageConversionContext.tsx index fe96cb0..21f8c78 100644 --- a/src/pages/master/conversion/hooks/ManageConversionContext.tsx +++ b/src/pages/master/conversion/hooks/ManageConversionContext.tsx @@ -68,16 +68,6 @@ const ManageConversionContextProvider = ({ children }: { children: React.ReactNo const columns = useMemo[]>( () => [ - { - accessorFn: (row) => row.id, - id: 'id', - header: ({ column }) => , - enableSorting: true, - enableHiding: false, - meta: { - headerClassName: 'w-[100px]' - } - }, { accessorFn: (row) => row.name, id: 'name', diff --git a/src/pages/master/municipios/hooks/ManageMunicipiosContext.tsx b/src/pages/master/municipios/hooks/ManageMunicipiosContext.tsx index 80c208a..5a95477 100644 --- a/src/pages/master/municipios/hooks/ManageMunicipiosContext.tsx +++ b/src/pages/master/municipios/hooks/ManageMunicipiosContext.tsx @@ -102,16 +102,6 @@ const ManageMunicipiosProvider = ({ children }: { children: React.ReactNode }) = const columns = useMemo[]>( () => [ - { - accessorFn: (row) => row.id, - id: 'id', - header: ({ column }) => , - enableSorting: true, - enableHiding: false, - meta: { - headerClassName: 'w-[100px]' - } - }, { // accessorFn: (row) => row.name, // id: 'name', diff --git a/src/pages/master/postoadms/hooks/ManagePostoAdmsContext.tsx b/src/pages/master/postoadms/hooks/ManagePostoAdmsContext.tsx index 5c2f500..ec68ee0 100644 --- a/src/pages/master/postoadms/hooks/ManagePostoAdmsContext.tsx +++ b/src/pages/master/postoadms/hooks/ManagePostoAdmsContext.tsx @@ -83,17 +83,6 @@ const ManagePostoAdmsContextProvider = ({ children }: { children: React.ReactNod const columns = useMemo[]>( () => [ - { - accessorFn: (row) => row.PostoAdms_id, - id: 'id', - // accessorKey: 'PostoAdms_id', - header: ({ column }) => , - enableSorting: true, - enableHiding: false, - meta: { - headerClassName: 'w-[100px]' - } - }, { accessorFn: (row) => row.PostoAdms_name, id: 'name', diff --git a/src/pages/master/products/hooks/ManageProductsContext.tsx b/src/pages/master/products/hooks/ManageProductsContext.tsx index 8987177..0bc11bc 100644 --- a/src/pages/master/products/hooks/ManageProductsContext.tsx +++ b/src/pages/master/products/hooks/ManageProductsContext.tsx @@ -72,16 +72,6 @@ const ManageProductsContextProvider = ({ children }: { children: React.ReactNode const columns = useMemo[]>( () => [ - { - accessorFn: (row) => row.products_id, - id: 'id', - header: ({ column }) => , - enableSorting: true, - enableHiding: false, - meta: { - headerClassName: 'w-[100px]' - } - }, { accessorFn: (row) => row.products_name, id: 'name', diff --git a/src/pages/master/profession/hooks/ManageProfessionContext.tsx b/src/pages/master/profession/hooks/ManageProfessionContext.tsx index a9a0fc8..63d003c 100644 --- a/src/pages/master/profession/hooks/ManageProfessionContext.tsx +++ b/src/pages/master/profession/hooks/ManageProfessionContext.tsx @@ -67,16 +67,6 @@ const ManageProfessionContextProvider = ({ children }: { children: React.ReactNo const columns = useMemo[]>( () => [ - { - accessorFn: (row) => row.id, - id: 'id', - header: ({ column }) => , - enableSorting: true, - enableHiding: false, - meta: { - headerClassName: 'w-[100px]' - } - }, { accessorFn: (row) => row.name, id: 'name', diff --git a/src/pages/master/provider/hooks/ManageProviderContext.tsx b/src/pages/master/provider/hooks/ManageProviderContext.tsx index ba92dda..b065f8b 100644 --- a/src/pages/master/provider/hooks/ManageProviderContext.tsx +++ b/src/pages/master/provider/hooks/ManageProviderContext.tsx @@ -73,16 +73,6 @@ const ManageProviderContextProvider = ({ children }: { children: React.ReactNode const columns = useMemo[]>( () => [ - { - accessorFn: (row) => row.provider_id, - id: 'id', - header: ({ column }) => , - enableSorting: true, - enableHiding: false, - meta: { - headerClassName: 'w-[100px]' - } - }, { accessorFn: (row) => row.provider_name, id: 'name', diff --git a/src/pages/master/sucos/hooks/ManageSucosContext.tsx b/src/pages/master/sucos/hooks/ManageSucosContext.tsx index ddcd6c6..8c53953 100644 --- a/src/pages/master/sucos/hooks/ManageSucosContext.tsx +++ b/src/pages/master/sucos/hooks/ManageSucosContext.tsx @@ -85,16 +85,6 @@ const ManageSucosContextProvider = ({ children }: { children: React.ReactNode }) const columns = useMemo[]>( () => [ - { - accessorKey: 'sucos_id', - id: 'id', - header: ({ column }) => , - enableSorting: true, - enableHiding: false, - meta: { - headerClassName: 'w-[100px]' - } - }, { accessorFn: (row) => row.sucos_name, id: 'sucos_name', diff --git a/src/pages/master/walletRule/hooks/ManageWalletRuleContext.tsx b/src/pages/master/walletRule/hooks/ManageWalletRuleContext.tsx index e196eaa..819785c 100644 --- a/src/pages/master/walletRule/hooks/ManageWalletRuleContext.tsx +++ b/src/pages/master/walletRule/hooks/ManageWalletRuleContext.tsx @@ -69,26 +69,6 @@ const ManageWalletRuleContextProvider = ({ children }: { children: React.ReactNo const columns = useMemo[]>( () => [ - { - accessorFn: (row) => row.ID, - id: 'id', - header: ({ column }) => , - enableSorting: true, - enableHiding: false, - meta: { - headerClassName: 'w-[100px]' - } - }, - { - accessorFn: (row) => row.IDWallet, - id: 'name', - header: ({ column }) => , - enableSorting: true, - enableHiding: false, - meta: { - headerClassName: 'w-[250px]' - } - }, { accessorFn: (row) => row.balance_minimum, id: 'balance_minimum',