From c91e53bc20794304d8e575942a53c00e6f5a793c Mon Sep 17 00:00:00 2001 From: Amin Ghasempoor Date: Sun, 13 Aug 2023 15:41:05 +0330 Subject: [PATCH] delete commits --- .../dashboard/commercial-chief/index.jsx | 35 ------------------- .../dashboard/development-assistant/index.jsx | 35 ------------------- .../dashboard/inspector-expert/index.jsx | 35 ------------------- .../dashboard/machinary-office/index.jsx | 4 --- .../navgan-province-manager/index.jsx | 4 --- .../dashboard/passenger-boss/index.jsx | 6 +--- .../dashboard/passenger-office/index.jsx | 4 --- .../dashboard/province-head-expert/index.jsx | 35 ------------------- .../refahi-province-manager/index.jsx | 35 ------------------- .../transportation-assistance/index.jsx | 4 --- 10 files changed, 1 insertion(+), 196 deletions(-) diff --git a/src/components/dashboard/commercial-chief/index.jsx b/src/components/dashboard/commercial-chief/index.jsx index 0222a9d..4ac03b3 100644 --- a/src/components/dashboard/commercial-chief/index.jsx +++ b/src/components/dashboard/commercial-chief/index.jsx @@ -160,47 +160,12 @@ function DashboardCommercialChiefComponent() { {renderedCellValue} ), }, - // { - // accessorFn: (row) => row.navgan_id, - // id: "navgan_id", - // header: t("CommercialChief.navgan_id"), - // enableColumnFilter: true, - // datatype: "numeric", - // filterFn: "equals", - // columnFilterModeOptions: [ - // "equals", - // "notEquals", - // "contains", - // "lessThan", - // "greaterThan", - // "between", - // ], - // Cell: ({renderedCellValue}) => ( - // {renderedCellValue} - // ), - // }, - // { - // accessorFn: (row) => row.vehicle_type, - // id: "vehicle_type", - // header: t("CommercialChief.vehicle_type"), - // enableColumnFilter: true, - // datatype: "text", - // filterFn: "contains", - // columnFilterModeOptions: ["contains", "equals", "notEquals"], - // Cell: ({renderedCellValue}) => ( - // {renderedCellValue} - // ), - // }, { accessorFn: (row) => row.state_name, id: "state_id", header: t("CommercialChief.state_name"), enableColumnFilter: false, datatype: "numeric", - // filterFn: "equals", - // filterSelectOptions: [ - // ], - // filterVariant: "select", Cell: ({renderedCellValue}) => ( {renderedCellValue} ), diff --git a/src/components/dashboard/development-assistant/index.jsx b/src/components/dashboard/development-assistant/index.jsx index b18b6ae..e54daab 100644 --- a/src/components/dashboard/development-assistant/index.jsx +++ b/src/components/dashboard/development-assistant/index.jsx @@ -161,47 +161,12 @@ function DashboardDevelopmentAssistantComponent() { {renderedCellValue} ), }, - // { - // accessorFn: (row) => row.navgan_id, - // id: "navgan_id", - // header: t("DevelopmentAssistant.navgan_id"), - // enableColumnFilter: true, - // datatype: "numeric", - // filterFn: "equals", - // columnFilterModeOptions: [ - // "equals", - // "notEquals", - // "contains", - // "lessThan", - // "greaterThan", - // "between", - // ], - // Cell: ({renderedCellValue}) => ( - // {renderedCellValue} - // ), - // }, - // { - // accessorFn: (row) => row.vehicle_type, - // id: "vehicle_type", - // header: t("DevelopmentAssistant.vehicle_type"), - // enableColumnFilter: true, - // datatype: "text", - // filterFn: "contains", - // columnFilterModeOptions: ["contains", "equals", "notEquals"], - // Cell: ({renderedCellValue}) => ( - // {renderedCellValue} - // ), - // }, { accessorFn: (row) => row.state_name, id: "state_id", header: t("DevelopmentAssistant.state_name"), enableColumnFilter: false, datatype: "numeric", - // filterFn: "equals", - // filterSelectOptions: [ - // ], - // filterVariant: "select", Cell: ({renderedCellValue}) => ( {renderedCellValue} ), diff --git a/src/components/dashboard/inspector-expert/index.jsx b/src/components/dashboard/inspector-expert/index.jsx index 3a1027b..5eeb329 100644 --- a/src/components/dashboard/inspector-expert/index.jsx +++ b/src/components/dashboard/inspector-expert/index.jsx @@ -160,47 +160,12 @@ function DashboardInspectorExpertComponent() { {renderedCellValue} ), }, - // { - // accessorFn: (row) => row.navgan_id, - // id: "navgan_id", - // header: t("InspectorExpert.navgan_id"), - // enableColumnFilter: true, - // datatype: "numeric", - // filterFn: "equals", - // columnFilterModeOptions: [ - // "equals", - // "notEquals", - // "contains", - // "lessThan", - // "greaterThan", - // "between", - // ], - // Cell: ({renderedCellValue}) => ( - // {renderedCellValue} - // ), - // }, - // { - // accessorFn: (row) => row.vehicle_type, - // id: "vehicle_type", - // header: t("InspectorExpert.vehicle_type"), - // enableColumnFilter: true, - // datatype: "text", - // filterFn: "contains", - // columnFilterModeOptions: ["contains", "equals", "notEquals"], - // Cell: ({renderedCellValue}) => ( - // {renderedCellValue} - // ), - // }, { accessorFn: (row) => row.state_name, id: "state_id", header: t("InspectorExpert.state_name"), enableColumnFilter: false, datatype: "numeric", - // filterFn: "equals", - // filterSelectOptions: [ - // ], - // filterVariant: "select", Cell: ({renderedCellValue}) => ( {renderedCellValue} ), diff --git a/src/components/dashboard/machinary-office/index.jsx b/src/components/dashboard/machinary-office/index.jsx index 908c412..8f68209 100644 --- a/src/components/dashboard/machinary-office/index.jsx +++ b/src/components/dashboard/machinary-office/index.jsx @@ -197,10 +197,6 @@ function DashboardMachinaryOfficeComponent() { header: t("MachinaryOffice.state_name"), enableColumnFilter: false, datatype: "numeric", - // filterFn: "equals", - // filterSelectOptions: [ - // ], - // filterVariant: "select", Cell: ({renderedCellValue}) => ( {renderedCellValue} ), diff --git a/src/components/dashboard/navgan-province-manager/index.jsx b/src/components/dashboard/navgan-province-manager/index.jsx index 9c9dd4b..702175c 100644 --- a/src/components/dashboard/navgan-province-manager/index.jsx +++ b/src/components/dashboard/navgan-province-manager/index.jsx @@ -198,10 +198,6 @@ function DashboardNavganProvinceManagerComponent() { header: t("NavganProvinceManager.state_name"), enableColumnFilter: false, datatype: "numeric", - // filterFn: "equals", - // filterSelectOptions: [ - // ], - // filterVariant: "select", Cell: ({renderedCellValue}) => ( {renderedCellValue} ), diff --git a/src/components/dashboard/passenger-boss/index.jsx b/src/components/dashboard/passenger-boss/index.jsx index b78a7c5..5fe7342 100644 --- a/src/components/dashboard/passenger-boss/index.jsx +++ b/src/components/dashboard/passenger-boss/index.jsx @@ -2,7 +2,7 @@ import DashboardLayouts from "@/layouts/dashboardLayouts"; import {Box, IconButton, Typography} from "@mui/material"; import ClearIcon from "@mui/icons-material/Clear"; import {useMemo} from "react"; -import {GET_PASSENGER_BOSS, GET_PASSENGER_OFFICE} from "@/core/data/apiRoutes"; +import {GET_PASSENGER_BOSS} from "@/core/data/apiRoutes"; import {useTranslations} from "next-intl"; import TableRowActions from "./TableRowActions"; import {LocalizationProvider, MobileDateTimePicker,} from "@mui/x-date-pickers"; @@ -198,10 +198,6 @@ function DashboardPassengerOfficeComponent() { header: t("PassengerBoss.state_name"), enableColumnFilter: false, datatype: "numeric", - // filterFn: "equals", - // filterSelectOptions: [ - // ], - // filterVariant: "select", Cell: ({renderedCellValue}) => ( {renderedCellValue} ), diff --git a/src/components/dashboard/passenger-office/index.jsx b/src/components/dashboard/passenger-office/index.jsx index 051f04b..d36acff 100644 --- a/src/components/dashboard/passenger-office/index.jsx +++ b/src/components/dashboard/passenger-office/index.jsx @@ -199,10 +199,6 @@ function DashboardPassengerOfficeComponent() { header: t("PassengerOffice.state_name"), enableColumnFilter: false, datatype: "numeric", - // filterFn: "equals", - // filterSelectOptions: [ - // ], - // filterVariant: "select", Cell: ({renderedCellValue}) => ( {renderedCellValue} ), diff --git a/src/components/dashboard/province-head-expert/index.jsx b/src/components/dashboard/province-head-expert/index.jsx index 99bc0ff..ded6eef 100644 --- a/src/components/dashboard/province-head-expert/index.jsx +++ b/src/components/dashboard/province-head-expert/index.jsx @@ -161,47 +161,12 @@ function DashboardProvinceHeadExpertComponent() { {renderedCellValue} ), }, - // { - // accessorFn: (row) => row.navgan_id, - // id: "navgan_id", - // header: t("ProvinceHeadExpert.navgan_id"), - // enableColumnFilter: true, - // datatype: "numeric", - // filterFn: "equals", - // columnFilterModeOptions: [ - // "equals", - // "notEquals", - // "contains", - // "lessThan", - // "greaterThan", - // "between", - // ], - // Cell: ({renderedCellValue}) => ( - // {renderedCellValue} - // ), - // }, - // { - // accessorFn: (row) => row.vehicle_type, - // id: "vehicle_type", - // header: t("ProvinceHeadExpert.vehicle_type"), - // enableColumnFilter: true, - // datatype: "text", - // filterFn: "contains", - // columnFilterModeOptions: ["contains", "equals", "notEquals"], - // Cell: ({renderedCellValue}) => ( - // {renderedCellValue} - // ), - // }, { accessorFn: (row) => row.state_name, id: "state_id", header: t("ProvinceHeadExpert.state_name"), enableColumnFilter: false, datatype: "numeric", - // filterFn: "equals", - // filterSelectOptions: [ - // ], - // filterVariant: "select", Cell: ({renderedCellValue}) => ( {renderedCellValue} ), diff --git a/src/components/dashboard/refahi-province-manager/index.jsx b/src/components/dashboard/refahi-province-manager/index.jsx index 0e4c2ad..8122fcf 100644 --- a/src/components/dashboard/refahi-province-manager/index.jsx +++ b/src/components/dashboard/refahi-province-manager/index.jsx @@ -162,47 +162,12 @@ function DashboardRefahiProvinceManagerComponent() { {renderedCellValue} ), }, - // { - // accessorFn: (row) => row.navgan_id, - // id: "navgan_id", - // header: t("RefahiProvinceManager.navgan_id"), - // enableColumnFilter: true, - // datatype: "numeric", - // filterFn: "equals", - // columnFilterModeOptions: [ - // "equals", - // "notEquals", - // "contains", - // "lessThan", - // "greaterThan", - // "between", - // ], - // Cell: ({renderedCellValue}) => ( - // {renderedCellValue} - // ), - // }, - // { - // accessorFn: (row) => row.vehicle_type, - // id: "vehicle_type", - // header: t("RefahiProvinceManager.vehicle_type"), - // enableColumnFilter: true, - // datatype: "text", - // filterFn: "contains", - // columnFilterModeOptions: ["contains", "equals", "notEquals"], - // Cell: ({renderedCellValue}) => ( - // {renderedCellValue} - // ), - // }, { accessorFn: (row) => row.state_name, id: "state_id", header: t("RefahiProvinceManager.state_name"), enableColumnFilter: false, datatype: "numeric", - // filterFn: "equals", - // filterSelectOptions: [ - // ], - // filterVariant: "select", Cell: ({renderedCellValue}) => ( {renderedCellValue} ), diff --git a/src/components/dashboard/transportation-assistance/index.jsx b/src/components/dashboard/transportation-assistance/index.jsx index efcf348..8f96ed4 100644 --- a/src/components/dashboard/transportation-assistance/index.jsx +++ b/src/components/dashboard/transportation-assistance/index.jsx @@ -198,10 +198,6 @@ function DashboardTransportationAssistanceComponent() { header: t("TransportationAssistance.state_name"), enableColumnFilter: false, datatype: "numeric", - // filterFn: "equals", - // filterSelectOptions: [ - // ], - // filterVariant: "select", Cell: ({renderedCellValue}) => ( {renderedCellValue} ),