Skip to content

Commit

Permalink
fix: Removed "any"
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBayfield committed Jan 26, 2025
1 parent 4d07acb commit 3942120
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/stats/stats-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ interface StatsPageProps {
stats: GlobalStats;
}

interface ProcessedTache {
date: Date;
deltaMenus: number;
deltaRepas: number;
deltaCategories: number;
deltaPlats: number;
deltaCompositions: number;
requetes: number;
}

interface TooltipPayload {
color: string;
value: number | string;
Expand Down Expand Up @@ -204,7 +214,7 @@ const TacheCharts = ({ data }: { data: Tache[] }) => {
}, [data]);

const groupedData = useMemo(() => {
return processedData.reduce((acc: Record<string, any>, item) => {
return processedData.reduce((acc: Record<string, ProcessedTache>, item) => {
const dateKey = item.date.toDateString();

if (!acc[dateKey]) {
Expand Down

0 comments on commit 3942120

Please sign in to comment.