change shipment methods
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user