Added channel labels.

This commit is contained in:
Mike Cao 2025-02-06 21:03:56 -08:00
parent d81a7fec99
commit fd4a405779
4 changed files with 38 additions and 19 deletions

View file

@ -4,11 +4,16 @@ import { useMessages } from '@/components/hooks';
export function BrowsersTable(props: MetricsTableProps) {
const { formatMessage, labels } = useMessages();
const renderLabel = ({ x }) => {
return formatMessage(labels[x]);
};
return (
<MetricsTable
{...props}
title={formatMessage(labels.channels)}
type="channel"
renderLabel={renderLabel}
metric={formatMessage(labels.visitors)}
/>
);