Skip to content

Commit

Permalink
renamed active to selected
Browse files Browse the repository at this point in the history
  • Loading branch information
coderwelsch committed Aug 6, 2024
1 parent 4f165c5 commit 6b3a345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/popover-menu/popover-menu-panel-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ export interface PopoverMenuPanelButtonProps {
onClick?: () => void;
Icon?: React.ComponentType<{ className: string }>;
variant?: keyof typeof itemIntents;
active?: boolean;
selected?: boolean;
}

export const PopoverMenuPanelButton = ({
children,
onClick,
Icon,
variant = "neutral",
active,
selected,
}: PopoverMenuPanelButtonProps) => {
return (
<HeadlessUiPopoverButton
className={classNames(
"relative flex w-full cursor-pointer flex-row items-center gap-3 overflow-hidden px-4 py-2 text-sm font-normal focus:ring-2 focus:ring-primary-200",
itemIntents[variant],
active && activeItemIntents[variant],
active &&
selected && activeItemIntents[variant],
selected &&
"before:absolute before:left-0 before:top-0 before:h-full before:w-0.5 before:rounded-r-md"
)}
onClick={onClick}
Expand Down

0 comments on commit 6b3a345

Please sign in to comment.