change shipment methods

This commit is contained in:
hamid zarghami
2025-12-03 09:58:34 +03:30
parent 2479f5d1da
commit 66a3eaef67
9 changed files with 198 additions and 96 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
import { type FC } from 'react'
import { useTranslation } from 'react-i18next'
import Table from '@/components/Table'
import Filters from '@/components/Filters'
import { useGetRestaurantShipmentMethods, useDeleteRestaurantShipmentMethod } from './hooks/useShipmentMethodData'
@@ -11,6 +12,7 @@ import { Pages } from '@/config/Pages'
import Button from '@/components/Button'
const ShipmentMethodList: FC = () => {
const { t } = useTranslation('global')
const {
filters,
currentPage,
@@ -26,7 +28,8 @@ const ShipmentMethodList: FC = () => {
const shipmentMethods = shipmentMethodsData?.data || []
const columns = getShipmentMethodTableColumns({
onDelete: (id: string) => deleteShipmentMethod(id),
isDeleting
isDeleting,
t
})
const filterFields = useShipmentMethodFiltersFields()