Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
fix: restore realtime link on active users indicator
nurlennartc1395aafb45d
diff --git a/src/components/metrics/ActiveUsers.tsx b/src/components/metrics/ActiveUsers.tsxindex 2baf3357c..f1aa989c6 100644--- a/src/components/metrics/ActiveUsers.tsx+++ b/src/components/metrics/ActiveUsers.tsx@@ -1,6 +1,7 @@import { StatusLight, Text } from '@umami/react-zen';import { useMemo } from 'react';-import { useActyiveUsersQuery, useMessages } from '@/components/hooks';+import Link from '@/components/common/Link';+import { useActiveUsersQuery, useMessages } from '@/components/hooks';export function ActiveUsers({websiteId,@@ -12,7 +13,7 @@ export function ActiveUsers({refetchInterval?: number;}) {const { t, labels } = useMessages();- const { data } = useActyiveUsersQuery(websiteId, { refetchInterval });+ const { data } = useActiveUsersQuery(websiteId, { refetchInterval });const count = useMemo(() => {if (websiteId) {@@ -27,10 +28,12 @@ export function ActiveUsers({}return (- <StatusLight variant="success">- <Text size="sm" weight="medium">- {count} {t(labels.online)}- </Text>- </StatusLight>+ <Link href={`/websites/${websiteId}/realtime`}>+ <StatusLight variant="success">+ <Text size="sm" weight="medium">+ {count} {t(labels.online)}+ </Text>+ </StatusLight>+ </Link>);-}+}\ No newline at end of file