From d9672bca81f5a3904d7e27c43f751858d190dcf0 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Mon, 9 Nov 2020 09:14:51 +0000 Subject: [PATCH] ui: Move notice storybook to use controls addon (#9126) --- .../app/components/notice/README.stories.mdx | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/ui/packages/consul-ui/app/components/notice/README.stories.mdx b/ui/packages/consul-ui/app/components/notice/README.stories.mdx index 7bb78f77dc..3731ec5bf8 100644 --- a/ui/packages/consul-ui/app/components/notice/README.stories.mdx +++ b/ui/packages/consul-ui/app/components/notice/README.stories.mdx @@ -1,13 +1,27 @@ import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; import { hbs } from 'ember-cli-htmlbars'; -import { select } from '@storybook/addon-knobs'; # Notice - {{ + {(args) => ({ template: hbs` @@ -25,17 +39,8 @@ import { select } from '@storybook/addon-knobs';

`, - context: { - type: select('type', { - 'success': 'success', - 'warning': 'warning', - 'info': 'info', - 'highlight': 'highlight', - }, - 'success' - ), - } - }} + context: args + })}