Skip to content

Commit 14f792c

Browse files
committed
build
1 parent 606dfbc commit 14f792c

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

dashboard/ai-analytics/src/app/components/TimeseriesChart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { useFilters } from '@/hooks/useTinybirdData';
1414
import { useSearchParams, useRouter } from 'next/navigation';
1515

16-
function classNames(...classes) {
16+
function classNames(...classes: (string | undefined | null | false)[]) {
1717
return classes.filter(Boolean).join(' ');
1818
}
1919

@@ -79,13 +79,13 @@ export default function TimeseriesChart({ data }: TimeseriesChartProps) {
7979
key: 'model',
8080
data: transformedData,
8181
categories: models,
82-
colors: models.map(model => colorMap[model] || defaultColors[models.indexOf(model) % defaultColors.length]),
82+
colors: models.map(model => colorMap[model as keyof typeof colorMap] || defaultColors[models.indexOf(model) % defaultColors.length]),
8383
summary: models.map(model => ({
8484
name: model,
8585
total: data.data
8686
.filter(d => d.category === model)
8787
.reduce((sum, item) => sum + item.total_cost, 0),
88-
color: `bg-${colorMap[model] || defaultColors[models.indexOf(model) % defaultColors.length]}-500`,
88+
color: `bg-${colorMap[model as keyof typeof colorMap] || defaultColors[models.indexOf(model) % defaultColors.length]}-500`,
8989
})),
9090
},
9191
{

dashboard/ai-analytics/src/app/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import TimeseriesChartContainer from './containers/TimeseriesChartContainer';
55
import MetricsCards from './components/MetricsCards';
66
import DataTable from './components/DataTable';
77
import TabbedPane from './components/TabbedPane';
8-
import { useState } from 'react';
98

109
export default function Dashboard() {
11-
const [dateRange, setDateRange] = useState<{start: Date; end: Date} | null>(null);
1210

1311
return (
1412
<div className="h-screen flex flex-col bg-gray-900 text-white">

dashboard/ai-analytics/tremor.config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)