Skip to content

Commit

Permalink
fix: action item node
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 10, 2020
1 parent 32735d2 commit c885e2d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ui/components/src/ActionContainer/ActionContainer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const overview = () => {
<ActionContainer
actions={[
{
title: 'action 1',
node: 'action 1',
onClick: () => console.log('clicked'),
},
{
title: <ExternalLink href="https://google.com">google</ExternalLink>,
node: <ExternalLink href="https://google.com">google</ExternalLink>,
onClick: () => console.log('clicked'),
},
]}
Expand All @@ -31,12 +31,12 @@ export const order = () => (
<ActionContainer
actions={[
{
title: 'action 1',
node: 'action 1',
onClick: () => console.log('clicked'),
order: 1,
},
{
title: <ExternalLink href="https://google.com">google</ExternalLink>,
node: <ExternalLink href="https://google.com">google</ExternalLink>,
onClick: () => console.log('clicked'),
order: 0,
},
Expand All @@ -50,17 +50,17 @@ export const override = () => (
<ActionContainer
actions={[
{
title: 'action 1',
node: 'action 1',
onClick: () => console.log('clicked'),
id: 'copy',
},
{
title: <ExternalLink href="https://google.com">google</ExternalLink>,
node: <ExternalLink href="https://google.com">google</ExternalLink>,
onClick: () => console.log('clicked'),
},
{
//this will override the action above
title: 'Copy',
node: 'Copy',
id: 'copy',
},
]}
Expand Down

0 comments on commit c885e2d

Please sign in to comment.