mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Updated date range handling.
This commit is contained in:
parent
6d1603fa28
commit
5ca51b3e8f
19 changed files with 101 additions and 99 deletions
|
|
@ -11,7 +11,7 @@ export function ActiveUsers({
|
|||
value?: number;
|
||||
refetchInterval?: number;
|
||||
}) {
|
||||
const { formatMessage, messages } = useMessages();
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { data } = useActyiveUsersQuery(websiteId, { refetchInterval });
|
||||
|
||||
const count = useMemo(() => {
|
||||
|
|
@ -28,8 +28,8 @@ export function ActiveUsers({
|
|||
|
||||
return (
|
||||
<StatusLight variant="success">
|
||||
<Text size="2" weight="bold">
|
||||
{formatMessage(messages.numberOfUsers, { x: count })}
|
||||
<Text size="2" weight="medium">
|
||||
{count} {formatMessage(labels.online)}
|
||||
</Text>
|
||||
</StatusLight>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue