mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 07:37:11 +01:00
Added channel labels.
This commit is contained in:
parent
d81a7fec99
commit
fd4a405779
4 changed files with 38 additions and 19 deletions
|
|
@ -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)}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue