Skip to content

Commit

Permalink
renamed active to isActive
Browse files Browse the repository at this point in the history
  • Loading branch information
coderwelsch committed Mar 12, 2024
1 parent fe3d287 commit 0e0b76e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/breadcrumbs/breadcrumbs-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ interface BreadcrumbItemProps {
children: React.ReactNode;
className?: string;
href?: string;
active?: boolean;
isActive?: boolean;
}

export const BreadcrumbsItem: React.FC<BreadcrumbItemProps> = ({
children,
className,
href,
active,
isActive,
}) => {
return (
<a
className={classNames(
"headline-500 text-neutral-800",
!active && "cursor-pointer underline-offset-2 hover:underline",
active && "text-black",
!isActive && "cursor-pointer underline-offset-2 hover:underline",
isActive && "text-black",
className
)}
href={href}
Expand Down

0 comments on commit 0e0b76e

Please sign in to comment.