From 44b69db155d35a6aa414f10a8f448e159377ca1f Mon Sep 17 00:00:00 2001 From: prateek-pareek <97360950+prateek-pareek@users.noreply.github.com> Date: Sat, 6 Jul 2024 01:39:07 +0530 Subject: [PATCH] fixes --- components/ui/dashboard/dashboard.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/ui/dashboard/dashboard.tsx b/components/ui/dashboard/dashboard.tsx index 8b16d20..afc8ee9 100644 --- a/components/ui/dashboard/dashboard.tsx +++ b/components/ui/dashboard/dashboard.tsx @@ -12,7 +12,6 @@ const Dashboard = () => { const [startDate, setStartDate] = useState(new Date('2023-01-01').getTime()); const [endDate, setEndDate] = useState(new Date('2023-12-31').getTime()); const [filteredData, setFilteredData] = useState([]); - const handleChange = (event: React.ChangeEvent, isStart: boolean) => { const newValue = +event; if (isStart) { @@ -23,7 +22,6 @@ const Dashboard = () => { filterData(newValue) }; - const formatDate = (timestamp: number) => { return format(new Date(timestamp), 'MM/dd/yyyy'); };