feat: add dual-date filter

This commit is contained in:
Kailasdevdas
2026-07-02 16:48:25 +05:30
parent d125165d3e
commit 37b86f578e
6 changed files with 446 additions and 212 deletions
+6
View File
@@ -6,6 +6,9 @@ export const getAppointmentsApi = async (
date = '',
startDate = '',
endDate = '',
createdDate = '',
createdStartDate = '',
createdEndDate = '',
search = ''
) => {
const params = new URLSearchParams({
@@ -14,6 +17,9 @@ export const getAppointmentsApi = async (
...(date && { date }),
...(startDate && { startDate }),
...(endDate && { endDate }),
...(createdDate && { createdDate }),
...(createdStartDate && { createdStartDate }),
...(createdEndDate && { createdEndDate }),
...(search && { search }),
});
const res = await apiClient.get(`/appointments/getall?${params}`);