From ab9606d786d4a7308e5c1864b013d35ce241881c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20de=20Metz?= Date: Mon, 17 Jul 2023 10:26:05 +0200 Subject: [PATCH] Update hbs templates to work with newer releases of ember --- code/frameworks/ember/template/cli/Button.stories.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/frameworks/ember/template/cli/Button.stories.js b/code/frameworks/ember/template/cli/Button.stories.js index 1f8eb9fce3af..cd85527b2b77 100644 --- a/code/frameworks/ember/template/cli/Button.stories.js +++ b/code/frameworks/ember/template/cli/Button.stories.js @@ -6,7 +6,7 @@ import { linkTo } from '@storybook/addon-links'; export default { title: 'Example/Button', render: (args) => ({ - template: hbs``, + template: hbs``, context: args, }), argTypes: { @@ -27,13 +27,14 @@ export const Text = { export const Emoji = { args: { label: '😀 😎 👍 💯', + onClick: action('onClick'), }, }; export const TextWithAction = { render: () => ({ template: hbs` - `, @@ -50,12 +51,12 @@ export const TextWithAction = { export const ButtonWithLinkToAnotherStory = { render: () => ({ template: hbs` - `, context: { - onClick: linkTo('Example/Introduction'), + onClick: linkTo('Configure your project'), }, }), name: 'button with link to another story',