This commit is contained in:
Moaz Dawalibi 2024-11-05 14:15:40 +03:00
parent 40b0ef3ab2
commit 547f71f840
3 changed files with 3 additions and 7 deletions

View File

@ -31,9 +31,6 @@ const FilterLayout = ({
const { t } = useTranslation();
const translateArray = translateOptions(search_array, t);
const [isOpen, setIsOpen] = useState(false);
// send this with api request
// type: type,
// page: currentPage,
const { FilterBody, FilterSubmit } = useFilter();
return (
@ -61,9 +58,7 @@ const FilterLayout = ({
</span>
<MdKeyboardArrowDown />
</div>
}
</span>
<span>

View File

@ -10,13 +10,13 @@ const App: React.FC = () => {
const { Filter } = useFilterStateState();
const name = Filter?.name ;
const sort_by = Filter?.sort_by ;
const response = useGetAllGrade({
pagination: true,
...filterState,
name,
name:filterState.name || name,
sort_by
});
// console.log(response);
return <DataTable response={response} useColumns={useColumns} />;
};

View File

@ -26,6 +26,7 @@ const TableHeader = () => {
]);
const deleteMutation = useDeleteTag();
return (
<div className="TableWithHeader">
<Suspense fallback={<Spin />}>