diff --git a/src/components/auth/UserMenu.tsx b/src/components/auth/UserMenu.tsx index d9e44ea..6f31aa5 100644 --- a/src/components/auth/UserMenu.tsx +++ b/src/components/auth/UserMenu.tsx @@ -1,6 +1,5 @@ 'use client'; -import Link from 'next/link'; import { useAuthConfig } from '@/contexts/AuthRateLimitContext'; import { useFeatureFlag } from '@/contexts/RuntimeConfigContext'; import { useAuthSession } from '@/hooks/useAuthSession'; @@ -35,21 +34,19 @@ export function UserMenu({ if (variant === 'sidebar') { return (
- + } + label="Connect" + /> + {enableUserSignups && ( } - label="Connect" + label="Create account" /> - - {enableUserSignups && ( - - } - label="Create account" - /> - )}
); diff --git a/src/components/ui/sidebar-nav.tsx b/src/components/ui/sidebar-nav.tsx index b556d96..9ff0da7 100644 --- a/src/components/ui/sidebar-nav.tsx +++ b/src/components/ui/sidebar-nav.tsx @@ -1,4 +1,5 @@ -import { forwardRef, type AnchorHTMLAttributes, type ButtonHTMLAttributes, type HTMLAttributes, type ReactNode } from 'react'; +import Link from 'next/link'; +import { forwardRef, type ButtonHTMLAttributes, type ComponentPropsWithoutRef, type HTMLAttributes, type ReactNode } from 'react'; import { cn } from './cn'; import { focusRing, motionColors } from './tokens'; @@ -170,7 +171,7 @@ export function SidebarNavItem({ ); } -export const SidebarNavLink = forwardRef & { +type SidebarNavLinkProps = ComponentPropsWithoutRef & { active?: boolean; icon?: ReactNode; label?: ReactNode; @@ -179,7 +180,9 @@ export const SidebarNavLink = forwardRef(function SidebarNavLink({ +}; + +export const SidebarNavLink = forwardRef(function SidebarNavLink({ active = false, icon, label, @@ -193,7 +196,7 @@ export const SidebarNavLink = forwardRef {children} - + ); });