diff --git a/src/client/components/dashboard/items/WebsiteEventItem.tsx b/src/client/components/dashboard/items/WebsiteEventItem.tsx index 15dfcd3..b86331d 100644 --- a/src/client/components/dashboard/items/WebsiteEventItem.tsx +++ b/src/client/components/dashboard/items/WebsiteEventItem.tsx @@ -1,10 +1,12 @@ import React from 'react'; import { WebsiteMetricsTable } from '../../website/WebsiteMetricsTable'; import { useGlobalRangeDate } from '../../../hooks/useGlobalRangeDate'; +import { useTranslation } from '@i18next-toolkit/react'; export const WebsiteEventItem: React.FC<{ websiteId: string; }> = React.memo((props) => { + const { t } = useTranslation(); const { startDate, endDate } = useGlobalRangeDate(); const startAt = startDate.valueOf(); const endAt = endDate.valueOf(); @@ -13,7 +15,7 @@ export const WebsiteEventItem: React.FC<{ diff --git a/src/client/components/telemetry/TelemetryMetricsTable.tsx b/src/client/components/telemetry/TelemetryMetricsTable.tsx index d43e6d7..aecfeae 100644 --- a/src/client/components/telemetry/TelemetryMetricsTable.tsx +++ b/src/client/components/telemetry/TelemetryMetricsTable.tsx @@ -12,7 +12,7 @@ type MetricsItemType = AppRouterOutput['telemetry']['metrics'][number]; interface MetricsTableProps { telemetryId: string; title: [string, string]; - type: 'source' | 'url' | 'referrer' | 'country'; + type: 'source' | 'url' | 'event' | 'referrer' | 'country'; startAt: number; endAt: number; } diff --git a/src/client/pages/Telemetry/Detail.tsx b/src/client/pages/Telemetry/Detail.tsx index b3bc091..48d617a 100644 --- a/src/client/pages/Telemetry/Detail.tsx +++ b/src/client/pages/Telemetry/Detail.tsx @@ -32,7 +32,7 @@ export const TelemetryDetailPage: React.FC = React.memo(() => { /> - + { /> - + + + + +