umami fix
This commit is contained in:
@@ -109,20 +109,20 @@ export function Navigation() {
|
|||||||
</NavigationMenuTrigger>
|
</NavigationMenuTrigger>
|
||||||
<NavigationMenuContent>
|
<NavigationMenuContent>
|
||||||
<ul className="grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]">
|
<ul className="grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]">
|
||||||
<ListItem
|
<ListItem2
|
||||||
title="Patreon"
|
title="Patreon"
|
||||||
href="https://patreon.com/zen_browser?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink"
|
href="https://patreon.com/zen_browser?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink"
|
||||||
>
|
>
|
||||||
Support us on Patreon and get exclusive rewards and keep the
|
Support us on Patreon and get exclusive rewards and keep the
|
||||||
project alive.
|
project alive.
|
||||||
</ListItem>
|
</ListItem2>
|
||||||
<ListItem
|
<ListItem2
|
||||||
title="Ko-Fi"
|
title="Ko-Fi"
|
||||||
href="https://ko-fi.com/zen_browser?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink"
|
href="https://ko-fi.com/zen_browser?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink"
|
||||||
>
|
>
|
||||||
Ko-fi is a way to support us with a one-time donation and help
|
Ko-fi is a way to support us with a one-time donation and help
|
||||||
us keep the project alive.
|
us keep the project alive.
|
||||||
</ListItem>
|
</ListItem2>
|
||||||
</ul>
|
</ul>
|
||||||
</NavigationMenuContent>
|
</NavigationMenuContent>
|
||||||
</NavigationMenuItem>
|
</NavigationMenuItem>
|
||||||
@@ -152,6 +152,30 @@ export function Navigation() {
|
|||||||
const ListItem = React.forwardRef<
|
const ListItem = React.forwardRef<
|
||||||
React.ElementRef<"a">,
|
React.ElementRef<"a">,
|
||||||
React.ComponentPropsWithoutRef<"a">
|
React.ComponentPropsWithoutRef<"a">
|
||||||
|
>(({ className, title, children, ...props }, ref) => {
|
||||||
|
return (
|
||||||
|
<li>
|
||||||
|
<NavigationMenuLink asChild>
|
||||||
|
<a
|
||||||
|
ref={ref}
|
||||||
|
className={ny(
|
||||||
|
"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
|
||||||
|
className,
|
||||||
|
)}
|
||||||
|
{...props}
|
||||||
|
>
|
||||||
|
<div className="text-sm font-medium leading-none">{title}</div>
|
||||||
|
<p className="line-clamp-2 text-sm leading-snug text-muted-foreground">
|
||||||
|
{children}
|
||||||
|
</p>
|
||||||
|
</a>
|
||||||
|
</NavigationMenuLink>
|
||||||
|
</li>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
const ListItem2 = React.forwardRef<
|
||||||
|
React.ElementRef<"a">,
|
||||||
|
React.ComponentPropsWithoutRef<"a">
|
||||||
>(({ className, title, children, ...props }, ref) => {
|
>(({ className, title, children, ...props }, ref) => {
|
||||||
return (
|
return (
|
||||||
<li>
|
<li>
|
||||||
@@ -175,3 +199,4 @@ const ListItem = React.forwardRef<
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
ListItem.displayName = "ListItem";
|
ListItem.displayName = "ListItem";
|
||||||
|
ListItem.displayName = "ListItem2";
|
||||||
|
|||||||
Reference in New Issue
Block a user