Code cleanup.

This commit is contained in:
Mike Cao 2026-02-05 19:46:16 -08:00
parent a8534a9d4d
commit 8484fd26e1
27 changed files with 183 additions and 162 deletions

View file

@ -1,6 +1,7 @@
import { IconLabel, Row } from '@umami/react-zen';
import { Row } from '@umami/react-zen';
import { WebsiteShareForm } from '@/app/(main)/websites/[websiteId]/settings/WebsiteShareForm';
import { Favicon } from '@/components/common/Favicon';
import { IconLabel } from '@/components/common/IconLabel';
import { LinkButton } from '@/components/common/LinkButton';
import { PageHeader } from '@/components/common/PageHeader';
import { useMessages, useNavigation, useWebsite } from '@/components/hooks';

View file

@ -161,7 +161,7 @@ export function WebsiteNav({
.find(({ path }) => path && pathname.endsWith(path.split('?')[0]))?.id;
return (
<Column padding="3" position="sticky" top="0" gap>
<Column padding="2" position="sticky" top="0" gap backgroundColor="transparent">
<WebsiteSelect
websiteId={websiteId}
teamId={teamId}

View file

@ -6,7 +6,6 @@ import {
Dialog,
DialogTrigger,
Icon,
IconLabel,
Popover,
Row,
Text,
@ -14,6 +13,7 @@ import {
import Link from 'next/link';
import { Avatar } from '@/components/common/Avatar';
import { DateDistance } from '@/components/common/DateDistance';
import { IconLabel } from '@/components/common/IconLabel';
import { TypeIcon } from '@/components/common/TypeIcon';
import { useFormat, useMessages, useNavigation } from '@/components/hooks';
import { Eye, FileText } from '@/components/icons';

View file

@ -1,5 +1,5 @@
import { IconLabel } from '@umami/react-zen';
import { useCallback } from 'react';
import { IconLabel } from '@/components/common/IconLabel';
import { TypeIcon } from '@/components/common/TypeIcon';
import { useCountryNames, useLocale, useMessages } from '@/components/hooks';
import { ListTable } from '@/components/metrics/ListTable';

View file

@ -1,4 +1,4 @@
import { Column, Heading, IconLabel, Row, SearchField, Text } from '@umami/react-zen';
import { Column, Heading, Row, SearchField, Text } from '@umami/react-zen';
import Link from 'next/link';
import { useMemo, useState } from 'react';
import { FixedSizeList } from 'react-window';
@ -6,6 +6,7 @@ import { SessionModal } from '@/app/(main)/websites/[websiteId]/sessions/Session
import { useFormat } from '@/components//hooks/useFormat';
import { Avatar } from '@/components/common/Avatar';
import { Empty } from '@/components/common/Empty';
import { IconLabel } from '@/components/common/IconLabel';
import {
useCountryNames,
useLocale,

View file

@ -1,5 +1,6 @@
import { IconLabel, Row } from '@umami/react-zen';
import { Row } from '@umami/react-zen';
import Link from 'next/link';
import { IconLabel } from '@/components/common/IconLabel';
import { PageHeader } from '@/components/common/PageHeader';
import { useMessages, useNavigation, useWebsite } from '@/components/hooks';
import { ArrowLeft, Globe } from '@/components/icons';

View file

@ -4,7 +4,6 @@ import {
Form,
FormButtons,
FormSubmitButton,
IconLabel,
Label,
Row,
Switch,
@ -12,6 +11,7 @@ import {
} from '@umami/react-zen';
import { RefreshCcw } from 'lucide-react';
import { useState } from 'react';
import { IconLabel } from '@/components/common/IconLabel';
import { useConfig, useMessages, useUpdateQuery } from '@/components/hooks';
import { getRandomChars } from '@/lib/generate';