Skip to content

Commit

Permalink
Additional fixes to ember for sb7
Browse files Browse the repository at this point in the history
  • Loading branch information
gossi authored and francois2metz committed Dec 10, 2023
1 parent 18f71dd commit 4f416d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/frameworks/ember/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="webpack-env" />

import './client/preview';
export * from './types';

// optimization: stop HMR propagation in webpack
if (typeof module !== 'undefined') module?.hot?.decline();
10 changes: 5 additions & 5 deletions code/frameworks/ember/template/cli/Button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { linkTo } from '@storybook/addon-links';
export default {
title: 'Example/Button',
render: (args) => ({
template: hbs`<button {{action this.onClick}}>{{this.label}}</button>`,
template: hbs`<button {{on "click" this.onClick}}>{{this.label}}</button>`,
context: args,
}),
argTypes: {
label: { control: 'text' },
},
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/ember/writing-docs/autodocs
tags: ['autodocs'],
};

Expand All @@ -34,7 +34,7 @@ export const Emoji = {
export const TextWithAction = {
render: () => ({
template: hbs`
<button {{action this.onClick}}>
<button {{on "click" this.onClick}}>
Trigger Action
</button>
`,
Expand All @@ -51,12 +51,12 @@ export const TextWithAction = {
export const ButtonWithLinkToAnotherStory = {
render: () => ({
template: hbs`
<button {{action this.onClick}}>
<button {{on "click" this.onClick}}>
Go to Welcome Story
</button>
`,
context: {
onClick: linkTo('Configure your project'),
onClick: linkTo('example-button--docs'),
},
}),
name: 'button with link to another story',
Expand Down

0 comments on commit 4f416d8

Please sign in to comment.