+
+
+
+
+ {period === "custom" ? (
+ <>
+
+ {
+ updateParams({ start_date: event.target.value || null })
+ }}
+ />
+
+
+ {
+ updateParams({ end_date: event.target.value || null })
+ }}
+ />
+
+ >
+ ) : null}
+
+ )
+}
diff --git a/apps/dashboard/modules/home/use-dashboard-data.ts b/apps/dashboard/modules/home/use-dashboard-data.ts
index e6555b8..01d798a 100644
--- a/apps/dashboard/modules/home/use-dashboard-data.ts
+++ b/apps/dashboard/modules/home/use-dashboard-data.ts
@@ -2,15 +2,15 @@
import { useQuery } from "@tanstack/react-query"
import { useAuthApi } from "@/shared/useApi"
-import type { HomeDashboardResponse } from "@garage/api"
+import type { HomeDashboardQuery, HomeDashboardResponse } from "@garage/api"
export type DashboardData = HomeDashboardResponse & Record