From 4f416d83243492bec10c14755cafce2d78e06e4e Mon Sep 17 00:00:00 2001 From: gossi Date: Sat, 9 Sep 2023 20:33:16 +0200 Subject: [PATCH] Additional fixes to ember for sb7 --- code/frameworks/ember/src/index.ts | 2 +- code/frameworks/ember/template/cli/Button.stories.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/code/frameworks/ember/src/index.ts b/code/frameworks/ember/src/index.ts index fc8faa13668a..30a9049586ce 100644 --- a/code/frameworks/ember/src/index.ts +++ b/code/frameworks/ember/src/index.ts @@ -1,6 +1,6 @@ /// -import './client/preview'; +export * from './types'; // optimization: stop HMR propagation in webpack if (typeof module !== 'undefined') module?.hot?.decline(); diff --git a/code/frameworks/ember/template/cli/Button.stories.js b/code/frameworks/ember/template/cli/Button.stories.js index 3a1bc2f593eb..61de1a4f9cc9 100644 --- a/code/frameworks/ember/template/cli/Button.stories.js +++ b/code/frameworks/ember/template/cli/Button.stories.js @@ -6,13 +6,13 @@ import { linkTo } from '@storybook/addon-links'; export default { title: 'Example/Button', render: (args) => ({ - template: hbs``, + template: hbs``, 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'], }; @@ -34,7 +34,7 @@ export const Emoji = { export const TextWithAction = { render: () => ({ template: hbs` - `, @@ -51,12 +51,12 @@ export const TextWithAction = { export const ButtonWithLinkToAnotherStory = { render: () => ({ template: hbs` - `, context: { - onClick: linkTo('Configure your project'), + onClick: linkTo('example-button--docs'), }, }), name: 'button with link to another story',