Skip to content

Commit

Permalink
Update 1-Button.stories.ts
Browse files Browse the repository at this point in the history
The property in the Angular component is lowercase. Without this change, the button example story wont work properly.
(The button text isn't rendered)
  • Loading branch information
devtronic authored Jan 19, 2020
1 parent 4a5508d commit 9e7e2c7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export default {
export const Text = () => ({
component: Button,
props: {
Text: 'Hello Button',
text: 'Hello Button',
},
});

export const Emoji = () => ({
component: Button,
props: {
Text: '😀 😎 👍 💯',
text: '😀 😎 👍 💯',
},
});

Expand All @@ -29,7 +29,7 @@ Emoji.story = {
export const WithSomeEmojiAndAction = () => ({
component: Button,
props: {
Text: '😀 😎 👍 💯',
text: '😀 😎 👍 💯',
onClick: action('This was clicked OMG'),
},
});
Expand All @@ -42,7 +42,7 @@ WithSomeEmojiAndAction.story = {
export const ButtonWithLinkToAnotherStory = () => ({
component: Button,
props: {
Text: 'Go to Welcome Story',
text: 'Go to Welcome Story',
onClick: linkTo('Welcome'),
},
});
Expand Down

0 comments on commit 9e7e2c7

Please sign in to comment.