mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 03:25:40 +01:00
Reformatted files with biome.
This commit is contained in:
parent
d51f0641a6
commit
fa8d8055df
558 changed files with 2108 additions and 2379 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import { Column, Grid, Heading, ListItem, Row, Select } from '@umami/react-zen';
|
||||
import { useState } from 'react';
|
||||
import { DateDisplay } from '@/components/common/DateDisplay';
|
||||
import { Panel } from '@/components/common/Panel';
|
||||
import { useDateRange, useMessages, useNavigation } from '@/components/hooks';
|
||||
import { ChangeLabel } from '@/components/metrics/ChangeLabel';
|
||||
import { MetricsTable } from '@/components/metrics/MetricsTable';
|
||||
import { formatNumber } from '@/lib/format';
|
||||
import { Column, Grid, Heading, ListItem, Row, Select } from '@umami/react-zen';
|
||||
import { useState } from 'react';
|
||||
|
||||
export function CompareTables({ websiteId }: { websiteId: string }) {
|
||||
const [data, setData] = useState([]);
|
||||
|
|
@ -106,7 +106,7 @@ export function CompareTables({ websiteId }: { websiteId: string }) {
|
|||
const change = Math.abs(((count - prev) / prev) * 100);
|
||||
|
||||
return (
|
||||
!isNaN(change) && (
|
||||
!Number.isNaN(change) && (
|
||||
<Row alignItems="center" marginRight="3">
|
||||
<ChangeLabel value={value}>{formatNumber(change)}%</ChangeLabel>
|
||||
</Row>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue