Skip to content

Commit 247e264

Browse files
committed
rename to breadcrumbs
1 parent c67a94d commit 247e264

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

client/dashboard/components/page-header/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const FullExample: Story = {
5757
title: 'Site Customization',
5858
description: 'Make your site look exactly how you want it to',
5959
decoration: <Icon icon={ wordpress } />,
60-
breadcrumb: (
60+
breadcrumbs: (
6161
<Breadcrumbs
6262
items={ [
6363
{ label: 'Dashboard', href: 'javascript:void(0)' },

client/dashboard/components/page-header/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export const PageHeader = ( {
3636
description,
3737
actions,
3838
decoration,
39-
breadcrumb,
39+
breadcrumbs,
4040
}: PageHeaderProps ) => {
4141
return (
4242
<VStack spacing={ 2 }>
43-
{ breadcrumb }
43+
{ breadcrumbs }
4444
<HStack spacing={ 4 } justify="flex-start" alignment="flex-start">
4545
{ decoration && (
4646
<span className="client-dashboard-components-page-header__decoration">

client/dashboard/components/page-header/test/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe( 'PageHeader', () => {
4444
render(
4545
<PageHeader
4646
title="Test Title"
47-
breadcrumb={
47+
breadcrumbs={
4848
<Breadcrumbs
4949
items={ [
5050
{ label: 'Home', href: '/' },

client/dashboard/components/page-header/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export interface PageHeaderProps {
2121
*/
2222
decoration?: React.ReactNode;
2323
/**
24-
* An optional breadcrumb component used to indicate the user's current position
24+
* An optional breadcrumbs component used to indicate the user's current position
2525
* in a complex navigational structure and allow quick access to parent levels.
2626
*/
27-
breadcrumb?: React.ReactNode[];
27+
breadcrumbs?: React.ReactNode;
2828
}

0 commit comments

Comments
 (0)