Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Differentiate buttons
Co-authored-by: Marco Ciampini <[email protected]>
  • Loading branch information
stokesman and ciampo committed Oct 12, 2021
commit d8b66a4decf31c97e931f1bfb99ae23f2c26d4af
9 changes: 7 additions & 2 deletions packages/components/src/navigator/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function NavigatorButton( { path, isBack = false, ...props } ) {
const navigator = useNavigator();
return (
<Button
variant="secondary"
onClick={ () => navigator.push( path, { isBack } ) }
{ ...props }
/>
Expand All @@ -41,7 +42,7 @@ const MyNavigation = () => {
<p>This is the home screen.</p>

<HStack justify="flex-start" wrap>
<NavigatorButton variant="primary" path="/child">
<NavigatorButton path="/child">
Navigate to child screen.
</NavigatorButton>

Expand All @@ -54,7 +55,11 @@ const MyNavigation = () => {
</NavigatorButton>

<Flyout
trigger={ <Button>Open test dialog</Button> }
trigger={
<Button variant="primary">
Open test dialog
</Button>
}
placement="bottom-start"
>
<CardHeader>Go</CardHeader>
Expand Down