Skip to content

Commit

Permalink
fix: typings for Breadcrumbs components
Browse files Browse the repository at this point in the history
  • Loading branch information
smsochneg committed Mar 21, 2024
1 parent 976a38c commit d2f9af5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type LinkBreadcrumbsItem = {
} & BaseBreadcrumbsItem;

type ButtonBreadcrumbsItem = {
href?: undefined;
href?: string;
action: (event: React.MouseEvent<HTMLElement, MouseEvent> | KeyboardEvent) => void;
} & BaseBreadcrumbsItem;

Expand Down
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs/BreadcrumbsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const b = block('breadcrumbs');

export function BreadcrumbsButton(props: {
title: string;
onClick: React.MouseEventHandler<HTMLElement>;
onClick?: React.MouseEventHandler<HTMLElement>;
children: React.ReactNode;
}) {
return <button {...props} type="button" className={b('switcher', {more: true})} />;
Expand Down

0 comments on commit d2f9af5

Please sign in to comment.