Skip to content

Commit

Permalink
Move the custom back label to More Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Sep 24, 2020
1 parent 38dd301 commit 32899fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/components/src/navigation/stories/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export function DefaultStory() {
</NavigationMenu>

<NavigationMenu
backButtonLabel="Custom Back Button Label"
menu="nested-sub-menu"
parentMenu="sub-menu"
title="Nested Sub-Menu"
Expand Down
15 changes: 15 additions & 0 deletions packages/components/src/navigation/stories/more-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ export function MoreExamplesStory() {
<NavigationMenu title="Home">
<NavigationItem item="item-1" title="Item 1" />
<NavigationItem item="item-2" title="Item 2" />
<NavigationItem
item="item-sub-menu"
navigateToMenu="sub-menu"
title="Sub-Menu"
/>
<NavigationItem
item="item-nonexistent-menu"
navigateToMenu="nonexistent-menu"
Expand All @@ -33,6 +38,16 @@ export function MoreExamplesStory() {
title="Item with a Delayed Badge"
/>
</NavigationMenu>

<NavigationMenu
backButtonLabel="Custom Back Button Label"
menu="sub-menu"
parentMenu="root"
title="Sub-Menu"
>
<NavigationItem item="child-1" title="Child 1" />
<NavigationItem item="child-2" title="Child 2" />
</NavigationMenu>
</Navigation>
);
}

0 comments on commit 32899fa

Please sign in to comment.