Skip to content

Commit

Permalink
Fix : DOM nesting Warning in BreadcrumbSeparator
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustix69 committed Jan 13, 2025
1 parent adac786 commit 75e1dd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ui/breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ const BreadcrumbSeparator = ({
children,
className,
...props
}: React.ComponentProps<"li">) => (
<li
}: React.ComponentProps<"span">) => (
<span
role="presentation"
aria-hidden="true"
className={cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className)}
{...props}
>
{children ?? <ChevronRightIcon />}
</li>
</span>
);
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";

Expand Down

0 comments on commit 75e1dd9

Please sign in to comment.