|
|
@@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
import { useCallback, useEffect, useMemo, useState } from "react"; |
|
|
|
import SearchBox, { Criterion } from "../SearchBox"; |
|
|
|
import { ItemsResult } from "@/app/api/settings/item"; |
|
|
|
import { ItemsResult, ItemsResultResponse } from "@/app/api/settings/item"; |
|
|
|
import { useTranslation } from "react-i18next"; |
|
|
|
import SearchResults, { Column } from "../SearchResults"; |
|
|
|
import { EditNote } from "@mui/icons-material"; |
|
|
@@ -85,7 +85,7 @@ const ItemsSearch: React.FC<Props> = ({ items }) => { |
|
|
|
...filterObj, |
|
|
|
}; |
|
|
|
try { |
|
|
|
const response = await axiosInstance.get<ItemsResult[]>( |
|
|
|
const response = await axiosInstance.get<ItemsResultResponse>( |
|
|
|
`${NEXT_PUBLIC_API_URL}/items/getRecordByPage`, |
|
|
|
{ params } |
|
|
|
); |
|
|
|