feat: improve mobile navigation with clickable page elements (#3770)
This commit is contained in:
1 parent
776e404c6f
commit
beb2bc0a06
3 files changed
+24
-7
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { useMemo } from 'react';
|
||||
import { Text, StatusLight } from '@umami/react-zen';
|
||||
import { useMessages, useActyiveUsersQuery } from '@/components/hooks';
|
||||
import { LinkButton } from '@/components/common/LinkButton';
|
||||
|
||||
export function ActiveUsers({
|
||||
websiteId,
|
||||
@@ -27,10 +28,12 @@ export function ActiveUsers({
|
||||
}
|
||||
|
||||
return (
|
||||
<StatusLight variant="success">
|
||||
<Text size="2" weight="medium">
|
||||
{count} {formatMessage(labels.online)}
|
||||
</Text>
|
||||
</StatusLight>
|
||||
<LinkButton href={`/websites/${websiteId}/realtime`} variant="quiet">
|
||||
<StatusLight variant="success">
|
||||
<Text size="2" weight="medium">
|
||||
{count} {formatMessage(labels.online)}
|
||||
</Text>
|
||||
</StatusLight>
|
||||
</LinkButton>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user