From db09f93624b3cdeaaa72498a7dea73c5b5416844 Mon Sep 17 00:00:00 2001 From: smsochneg Date: Thu, 21 Mar 2024 13:35:49 +0100 Subject: [PATCH] fix(Breadcrumbs): renamed `LinkBreadcrumbsItem` and `ButtonBreadcrumbsItem` types (#1437) --- src/components/Breadcrumbs/Breadcrumbs.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Breadcrumbs/Breadcrumbs.tsx b/src/components/Breadcrumbs/Breadcrumbs.tsx index 96fdd8bc50..fb1cd7e61c 100644 --- a/src/components/Breadcrumbs/Breadcrumbs.tsx +++ b/src/components/Breadcrumbs/Breadcrumbs.tsx @@ -24,17 +24,17 @@ type BaseBreadcrumbsItem = { title?: string; }; -export type LinkBreadcrumbsItem = { +export type BreadcrumbsLinkItem = { href: string; action?: (event: React.MouseEvent | KeyboardEvent) => void; } & BaseBreadcrumbsItem; -export type ButtonBreadcrumbsItem = { +export type BreadcrumbsButtonItem = { href?: undefined; action: (event: React.MouseEvent | KeyboardEvent) => void; } & BaseBreadcrumbsItem; -export type BreadcrumbsItem = LinkBreadcrumbsItem | ButtonBreadcrumbsItem; +export type BreadcrumbsItem = BreadcrumbsLinkItem | BreadcrumbsButtonItem; export interface BreadcrumbsProps extends QAProps { items: T[];