Skip to content

Commit 9e51d1f

Browse files
haasonsaasclaude
andcommitted
Fix TypeScript build errors in Admin.tsx
Remove unused imports (TrendingUp, TrendingDown, Clock) and fix Recharts tooltip formatter type to accept ValueType. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ff2a7ad commit 9e51d1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/src/pages/Admin.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
ResponsiveContainer, XAxis, YAxis, Tooltip, CartesianGrid,
55
} from 'recharts'
66
import { useEvents } from '../api/hooks'
7-
import { Loader2, AlertTriangle, TrendingUp, TrendingDown, ArrowUpRight, ArrowDownRight, DollarSign, Clock, ToggleLeft, ToggleRight } from 'lucide-react'
7+
import { Loader2, AlertTriangle, ArrowUpRight, ArrowDownRight, DollarSign, ToggleLeft, ToggleRight } from 'lucide-react'
88
import { CHART_THEME, SEV_COLORS } from '../lib/constants'
99
import { estimateCost, formatCost, totalCost } from '../lib/cost'
1010
import type { ReviewEvent } from '../api/types'
@@ -487,7 +487,7 @@ export function Admin() {
487487
/>
488488
<Tooltip
489489
{...tooltipStyle}
490-
formatter={(value: number) => [formatCost(value), 'Cumulative Cost']}
490+
formatter={(value) => [formatCost(Number(value)), 'Cumulative Cost']}
491491
/>
492492
<Area type="monotone" dataKey="cost" stroke={CHART_THEME.accent} fill="url(#costGrad)" strokeWidth={1.5} dot={false} name="Cumulative Cost" />
493493
</AreaChart>

0 commit comments

Comments
 (0)