From 1b5bbb32fae0a3558cb728d9212341ee0b5e0de9 Mon Sep 17 00:00:00 2001 From: Olaf Rosendahl Date: Mon, 20 Nov 2023 08:48:57 +0100 Subject: [PATCH] feat: format --- web/app/components/nivo/ResponsiveBar.tsx | 3 ++- web/app/components/nivo/ResponsiveLine.tsx | 3 ++- web/app/components/statistics/HoursOfTheDay.tsx | 2 +- web/app/components/statistics/PageviewsTrend.tsx | 2 +- web/app/components/statistics/VisitorsTrend.tsx | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/web/app/components/nivo/ResponsiveBar.tsx b/web/app/components/nivo/ResponsiveBar.tsx index 6c9b60c..164313d 100644 --- a/web/app/components/nivo/ResponsiveBar.tsx +++ b/web/app/components/nivo/ResponsiveBar.tsx @@ -1,4 +1,5 @@ -import { BarDatum, ResponsiveBar, ResponsiveBarSvgProps } from '@nivo/bar'; +import type { BarDatum, ResponsiveBarSvgProps } from '@nivo/bar'; +import { ResponsiveBar } from '@nivo/bar'; import { useIsClient } from '~/hooks/useIsClient'; const ResponsiveBarBox = (props: ResponsiveBarSvgProps) => { diff --git a/web/app/components/nivo/ResponsiveLine.tsx b/web/app/components/nivo/ResponsiveLine.tsx index 4e7ddea..cba02ce 100644 --- a/web/app/components/nivo/ResponsiveLine.tsx +++ b/web/app/components/nivo/ResponsiveLine.tsx @@ -1,4 +1,5 @@ -import { ResponsiveLine, LineSvgProps } from '@nivo/line'; +import type { LineSvgProps } from '@nivo/line'; +import { ResponsiveLine } from '@nivo/line'; import { useIsClient } from '~/hooks/useIsClient'; const ResponsiveLineBox = (props: LineSvgProps) => { diff --git a/web/app/components/statistics/HoursOfTheDay.tsx b/web/app/components/statistics/HoursOfTheDay.tsx index 6c2c791..d8c4566 100644 --- a/web/app/components/statistics/HoursOfTheDay.tsx +++ b/web/app/components/statistics/HoursOfTheDay.tsx @@ -1,5 +1,5 @@ import { Box, Card, Typography, useTheme } from '@mui/joy'; -import { Suspense, lazy } from 'react'; +import { lazy, Suspense } from 'react'; import type { getTopHours } from './loaders'; diff --git a/web/app/components/statistics/PageviewsTrend.tsx b/web/app/components/statistics/PageviewsTrend.tsx index 61bbdbb..20509fe 100644 --- a/web/app/components/statistics/PageviewsTrend.tsx +++ b/web/app/components/statistics/PageviewsTrend.tsx @@ -1,5 +1,5 @@ import { Box, Card, Typography, useTheme } from '@mui/joy'; -import { Suspense, lazy } from 'react'; +import { lazy, Suspense } from 'react'; import type { getPageViewsTrend } from './loaders'; diff --git a/web/app/components/statistics/VisitorsTrend.tsx b/web/app/components/statistics/VisitorsTrend.tsx index 2fcd70a..e411325 100644 --- a/web/app/components/statistics/VisitorsTrend.tsx +++ b/web/app/components/statistics/VisitorsTrend.tsx @@ -1,5 +1,5 @@ import { Box, Card, Typography, useTheme } from '@mui/joy'; -import { Suspense, lazy } from 'react'; +import { lazy, Suspense } from 'react'; import type { getPageVisitorsTrend } from './loaders';