Fix TypeScript type errors across multiple files
Some checks failed
Node.js CI / build (push) Has been cancelled

This commit is contained in:
Mike Cao 2026-02-05 21:25:46 -08:00
parent 860e6390f1
commit a3733b0424
12 changed files with 38 additions and 15 deletions

View file

@ -42,7 +42,7 @@ export function Funnel({ id, name, type, parameters, websiteId }) {
return (
<Dialog
title={formatMessage(labels.funnel)}
variant="modal"
variant="sheet"
style={{ minHeight: 300, minWidth: 400 }}
>
<FunnelEditForm id={id} websiteId={websiteId} onClose={close} />

View file

@ -16,7 +16,7 @@ export function FunnelAddButton({ websiteId }: { websiteId: string }) {
</Button>
<Modal>
<Dialog
variant="modal"
variant="sheet"
title={formatMessage(labels.funnel)}
style={{ minHeight: 375, minWidth: 600 }}
>

View file

@ -51,7 +51,7 @@ export function Goal({ id, name, type, parameters, websiteId, startDate, endDate
return (
<Dialog
title={formatMessage(labels.goal)}
variant="modal"
variant="sheet"
style={{ minHeight: 300, minWidth: 400 }}
>
<GoalEditForm id={id} websiteId={websiteId} onClose={close} />

View file

@ -22,7 +22,11 @@ export function WebsiteChart({
const chartData = useMemo(() => {
if (data) {
const result = {
const result: {
pageviews: any[];
sessions: any[];
compare?: { pageviews: any[]; sessions: any[] };
} = {
pageviews,
sessions,
};

View file

@ -10,7 +10,7 @@ import {
} from '@umami/react-zen';
import { Fragment } from 'react';
import { useMessages, useNavigation } from '@/components/hooks';
import { Edit, More, Share } from '@/components/icons';
import { Edit, Ellipsis, Share } from '@/components/icons';
export function WebsiteMenu({ websiteId }: { websiteId: string }) {
const { formatMessage, labels } = useMessages();
@ -33,7 +33,7 @@ export function WebsiteMenu({ websiteId }: { websiteId: string }) {
<MenuTrigger>
<Button variant="quiet">
<Icon>
<More />
<Ellipsis />
</Icon>
</Button>
<Popover placement="bottom">