diff --git a/src/app/(main)/MobileNav.tsx b/src/app/(main)/MobileNav.tsx index 5fea9f82..2c9b50c0 100644 --- a/src/app/(main)/MobileNav.tsx +++ b/src/app/(main)/MobileNav.tsx @@ -5,7 +5,7 @@ import Link from 'next/link'; import { WebsiteNav } from '@/app/(main)/websites/[websiteId]/WebsiteNav'; import { Logo } from '@/components/svg'; import { NavButton } from '@/components/input/NavButton'; -import { MobileMenu } from '@/components/common/MobileMenu'; +import { MobileMenuButton } from '@/components/input/MobileMenuButton'; export function MobileNav() { const { formatMessage, labels } = useMessages(); @@ -34,7 +34,7 @@ export function MobileNav() { return ( - + {({ close }) => { return ( <> @@ -54,7 +54,7 @@ export function MobileNav() { ); }} - + } style={{ width: 'auto' }}> umami diff --git a/src/app/(main)/websites/[websiteId]/WebsiteExpandedView.tsx b/src/app/(main)/websites/[websiteId]/WebsiteExpandedView.tsx index f8d4c5f4..2e082204 100644 --- a/src/app/(main)/websites/[websiteId]/WebsiteExpandedView.tsx +++ b/src/app/(main)/websites/[websiteId]/WebsiteExpandedView.tsx @@ -2,7 +2,7 @@ import { Grid, Column, Row } from '@umami/react-zen'; import { useMessages, useNavigation } from '@/components/hooks'; import { MetricsExpandedTable } from '@/components/metrics/MetricsExpandedTable'; import { WebsiteExpandedMenu } from '@/app/(main)/websites/[websiteId]/WebsiteExpandedMenu'; -import { MobileMenu } from '@/components/common/MobileMenu'; +import { MobileMenuButton } from '@/components/input/MobileMenuButton'; export function WebsiteExpandedView({ websiteId, @@ -21,11 +21,11 @@ export function WebsiteExpandedView({ return ( - + {({ close }) => { return ; }} - + { const { formatMessage, labels } = useMessages(); return ( - - - - - {({ close }) => { - return ; - }} - - - + } label={formatMessage(labels.share)} width="800px"> + {({ close }) => { + return ; + }} + ); }; diff --git a/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx b/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx index d63b1ad3..0fb6d565 100644 --- a/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx +++ b/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx @@ -161,7 +161,7 @@ export function WebsiteNav({ .find(({ path }) => path && pathname.endsWith(path.split('?')[0]))?.id; return ( - + - + diff --git a/src/components/input/DialogButton.tsx b/src/components/input/DialogButton.tsx index b319caf3..bb831eef 100644 --- a/src/components/input/DialogButton.tsx +++ b/src/components/input/DialogButton.tsx @@ -46,7 +46,6 @@ export function DialogButton({ - {children} diff --git a/src/components/common/MobileMenu.tsx b/src/components/input/MobileMenuButton.tsx similarity index 87% rename from src/components/common/MobileMenu.tsx rename to src/components/input/MobileMenuButton.tsx index 1fb0831a..bd32272d 100644 --- a/src/components/common/MobileMenu.tsx +++ b/src/components/input/MobileMenuButton.tsx @@ -1,7 +1,7 @@ import { Dialog, DialogTrigger, Button, Icon, Modal, DialogProps } from '@umami/react-zen'; import { Menu } from '@/components/icons'; -export function MobileMenu(props: DialogProps) { +export function MobileMenuButton(props: DialogProps) { return (