mirror of
https://github.com/umami-software/umami.git
synced 2026-02-21 21:15:35 +01:00
Updated edit forms and icons.
This commit is contained in:
parent
554054d3a1
commit
257050f749
20 changed files with 120 additions and 123 deletions
|
|
@ -12,7 +12,7 @@ import {
|
|||
Dialog,
|
||||
} from '@umami/react-zen';
|
||||
import { LoadingPanel } from '@/components/common/LoadingPanel';
|
||||
import { LightningSvg, Eye, FileText } from '@/components/icons';
|
||||
import { Lightning, Eye, FileText } from '@/components/icons';
|
||||
import { useMessages, useSessionActivityQuery, useTimezone } from '@/components/hooks';
|
||||
import { EventData } from '@/components/metrics/EventData';
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ export function SessionActivity({
|
|||
{formatTimezoneDate(createdAt, 'pp')}
|
||||
</StatusLight>
|
||||
<Row alignItems="center" gap="2">
|
||||
<Icon>{eventName ? <LightningSvg /> : <Eye />}</Icon>
|
||||
<Icon>{eventName ? <Lightning /> : <Eye />}</Icon>
|
||||
<Text>
|
||||
{eventName
|
||||
? formatMessage(labels.triggeredEvent)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ import { ReactNode } from 'react';
|
|||
import { Icon, TextField, Column, Row, Label, Text } from '@umami/react-zen';
|
||||
import { useFormat, useLocale, useMessages, useRegionNames } from '@/components/hooks';
|
||||
import { TypeIcon } from '@/components/common/TypeIcon';
|
||||
import { LocationSvg, KeyRound, Calendar } from '@/components/icons';
|
||||
import { KeyRound, Calendar } from '@/components/icons';
|
||||
import { Location } from '@/components/svg';
|
||||
import { DateDistance } from '@/components/common/DateDistance';
|
||||
|
||||
export function SessionInfo({ data }) {
|
||||
|
|
@ -36,11 +37,11 @@ export function SessionInfo({ data }) {
|
|||
{formatValue(data?.country, 'country')}
|
||||
</Info>
|
||||
|
||||
<Info label={formatMessage(labels.region)} icon={<LocationSvg />}>
|
||||
<Info label={formatMessage(labels.region)} icon={<Location />}>
|
||||
{getRegionName(data?.region)}
|
||||
</Info>
|
||||
|
||||
<Info label={formatMessage(labels.city)} icon={<LocationSvg />}>
|
||||
<Info label={formatMessage(labels.city)} icon={<Location />}>
|
||||
{data?.city}
|
||||
</Info>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue