New goals page. Upgraded prisma.

This commit is contained in:
Mike Cao 2025-05-31 02:11:18 -07:00
parent 99330a1a4d
commit 49bcbfd7f9
65 changed files with 769 additions and 1195 deletions

View file

@ -1,4 +1,4 @@
import { Button, MenuTrigger, Dialog, Icon, Text, Modal } from '@umami/react-zen';
import { Button, DialogTrigger, Dialog, Icon, Text, Modal } from '@umami/react-zen';
import { useMessages } from '@/components/hooks';
import { GoalAddForm } from './GoalAddForm';
import { Plus } from '@/components/icons';
@ -7,7 +7,7 @@ export function GoalAddButton({ websiteId }: { websiteId: string }) {
const { formatMessage, labels } = useMessages();
return (
<MenuTrigger>
<DialogTrigger>
<Button variant="primary">
<Icon>
<Plus />
@ -15,10 +15,10 @@ export function GoalAddButton({ websiteId }: { websiteId: string }) {
<Text>{formatMessage(labels.addGoal)}</Text>
</Button>
<Modal>
<Dialog variant="modal" title={formatMessage(labels.addGoal)}>
<Dialog variant="modal" title={formatMessage(labels.addGoal)} style={{ width: '400px' }}>
{({ close }) => <GoalAddForm websiteId={websiteId} onClose={close} />}
</Dialog>
</Modal>
</MenuTrigger>
</DialogTrigger>
);
}