Skip to content

Commit

Permalink
♻️ migrate stories to use anglebracket syntax for components
Browse files Browse the repository at this point in the history
  • Loading branch information
dbendaou authored and gabrielcsapo committed Apr 9, 2021
1 parent 757be6b commit 358c3cd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
16 changes: 8 additions & 8 deletions lib/cli/src/frameworks/ember/stories/Button.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { hbs } from 'ember-cli-htmlbars';
// You don't need the css import in your own components
import './button.css';

export default {
title: 'Example/Button',
Expand All @@ -16,12 +14,14 @@ export default {
};

const Template = (args) => ({
template: hbs`{{storybook-button
backgroundColor=backgroundColor
label=label
primary=primary
onClick=(action onClick)
}}`,
template: hbs`
<StorybookButton
@backgroundColor={{this.backgroundColor}}
@label={{this.label}}
@primary={{this.primary}}
@onClick={{this.onClick}}
/>
`,
context: args,
});

Expand Down
16 changes: 8 additions & 8 deletions lib/cli/src/frameworks/ember/stories/Header.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { hbs } from 'ember-cli-htmlbars';
// You don't need the css import in your own components
import './header.css';

export default {
title: 'Example/Header',
Expand All @@ -12,12 +10,14 @@ export default {
};

const Template = (args) => ({
template: hbs`{{storybook-header
user=user
onLogin=(action onLogin)
onLogout=(action onLogout)
onCreateAccount=(action onCreateAccount)
}}`,
template: hbs`
<StorybookHeader
@user={{this.user}}
@onLogin={{this.onLogin}}
@onLogout={{this.onLogout}}
@onCreateAccount={{this.onCreateAccount}}
/>
`,
context: args,
});

Expand Down
16 changes: 8 additions & 8 deletions lib/cli/src/frameworks/ember/stories/Page.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { hbs } from 'ember-cli-htmlbars';
import * as HeaderStories from './Header.stories';
// You don't need the css import in your own components
import './page.css';

export default {
title: 'Example/Page',
Expand All @@ -13,12 +11,14 @@ export default {
};

const Template = (args) => ({
template: hbs`{{storybook-page
user=user
onLogin=(action onLogin)
onLogout=(action onLogout)
onCreateAccount=(action onCreateAccount)
}}`,
template: hbs`
<StorybookPage
@user={{this.user}}
@onLogin={{this.onLogin}}
@onLogout={{this.onLogout}}
@onCreateAccount={{this.onCreateAccount}}
/>
`,
context: args,
});

Expand Down

0 comments on commit 358c3cd

Please sign in to comment.