Reformatted files with biome.

This commit is contained in:
Mike Cao committed 2025-11-22 22:42:42 -08:00
1 parent d51f0641a6
commit fa8d8055df
558 files changed
+2108 -2379

No files matched your search

+4 -4
View File
@@ -1,11 +1,11 @@
import { useMemo, useState } from 'react';
import { useTheme } from '@umami/react-zen';
import { useMemo, useState } from 'react';
import { Chart, type ChartProps } from '@/components/charts/Chart';
import { ChartTooltip } from '@/components/charts/ChartTooltip';
import { Chart, ChartProps } from '@/components/charts/Chart';
import { useLocale } from '@/components/hooks';
import { renderNumberLabels } from '@/lib/charts';
import { getThemeColors } from '@/lib/colors';
import { formatDate, DATE_FORMATS } from '@/lib/date';
import { DATE_FORMATS, formatDate } from '@/lib/date';
import { formatLongCurrency, formatLongNumber } from '@/lib/format';
const dateFormats = {
@@ -52,7 +52,7 @@ export function BarChart({
const chartOptions: any = useMemo(() => {
return {
__id: new Date().getTime(),
__id: Date.now(),
scales: {
x: {
type: XAxisType,
+1 -1
View File
@@ -1,5 +1,5 @@
import { Chart, ChartProps } from '@/components/charts/Chart';
import { useState } from 'react';
import { Chart, type ChartProps } from '@/components/charts/Chart';
import { ChartTooltip } from '@/components/charts/ChartTooltip';
export interface BubbleChartProps extends ChartProps {
+8 -3
View File
@@ -1,6 +1,11 @@
import { useState, useRef, useEffect, useMemo } from 'react';
import { Box, Column, BoxProps } from '@umami/react-zen';
import ChartJS, { LegendItem, ChartOptions, ChartData, UpdateMode } from 'chart.js/auto';
import { Box, type BoxProps, Column } from '@umami/react-zen';
import ChartJS, {
type ChartData,
type ChartOptions,
type LegendItem,
type UpdateMode,
} from 'chart.js/auto';
import { useEffect, useMemo, useRef, useState } from 'react';
import { Legend } from '@/components/metrics/Legend';
import { DEFAULT_ANIMATION_DURATION } from '@/lib/constants';
+2 -2
View File
@@ -1,5 +1,5 @@
import { ReactNode } from 'react';
import { Column, Row, StatusLight, FloatingTooltip } from '@umami/react-zen';
import { Column, FloatingTooltip, Row, StatusLight } from '@umami/react-zen';
import type { ReactNode } from 'react';
export function ChartTooltip({
title,
+1 -1
View File
@@ -1,5 +1,5 @@
import { Chart, ChartProps } from '@/components/charts/Chart';
import { useState } from 'react';
import { Chart, type ChartProps } from '@/components/charts/Chart';
import { ChartTooltip } from '@/components/charts/ChartTooltip';
export interface PieChartProps extends ChartProps {