From 3579a83ff7ad229667174e476877142a1a2e7de2 Mon Sep 17 00:00:00 2001 From: "PC-20260115JRSN\\Administrator" Date: Mon, 23 Feb 2026 12:41:32 +0800 Subject: [PATCH] no message --- src/components/DoSearch/DoSearch.tsx | 4 ++-- src/components/DoSearch/DoSearchWrapper.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DoSearch/DoSearch.tsx b/src/components/DoSearch/DoSearch.tsx index 12b57db..f1c570a 100644 --- a/src/components/DoSearch/DoSearch.tsx +++ b/src/components/DoSearch/DoSearch.tsx @@ -37,7 +37,7 @@ import { SessionWithTokens } from "@/config/authConfig"; type Props = { filterArgs?: Record; searchQuery?: Record; - onDeliveryOrderSearch: () => void; + onDeliveryOrderSearch?: () => void; }; type SearchBoxInputs = Record<"code" | "status" | "estimatedArrivalDate" | "orderDate" | "supplierName" | "shopName" | "deliveryOrderLines" | "truckLanceCode" | "codeTo" | "statusTo" | "estimatedArrivalDateTo" | "orderDateTo" | "supplierNameTo" | "shopNameTo" | "deliveryOrderLinesTo" | "truckLanceCodeTo", string>; type SearchParamNames = keyof SearchBoxInputs; @@ -52,7 +52,7 @@ type EntryError = type DoRow = TableRow, EntryError>; -const DoSearch: React.FC = ({filterArgs, searchQuery, onDeliveryOrderSearch}) => { +const DoSearch: React.FC = ({ filterArgs, searchQuery, onDeliveryOrderSearch }) => { const apiRef = useGridApiRef(); const formProps = useForm({ diff --git a/src/components/DoSearch/DoSearchWrapper.tsx b/src/components/DoSearch/DoSearchWrapper.tsx index c37440f..fd3855e 100644 --- a/src/components/DoSearch/DoSearchWrapper.tsx +++ b/src/components/DoSearch/DoSearchWrapper.tsx @@ -9,7 +9,7 @@ interface SubComponents { const DoSearchWrapper: React.FC & SubComponents = async () => { // const [dos] = await Promise.all([fetchDoList()]); - return {}} />; + return ; }; DoSearchWrapper.Loading = GeneralLoading;