From 32980e0180c38633902cd1ee6837750c63766409 Mon Sep 17 00:00:00 2001 From: qa46hx Date: Thu, 23 Jan 2020 15:49:54 +0100 Subject: [PATCH] chore(switch): improve storybook demo --- packages/switch/stories/index.stories.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/switch/stories/index.stories.mdx b/packages/switch/stories/index.stories.mdx index 793de32a7..47c76b267 100644 --- a/packages/switch/stories/index.stories.mdx +++ b/packages/switch/stories/index.stories.mdx @@ -80,7 +80,7 @@ Simple example that illustrates where validation feedback will be displayed. id="newsletterCheck" name="newsletterCheck" label="Subscribe to newsletter" - .validators="${[new IsTrue()]}" + .validators="${[new IsTrue(null, {type: 'info'})]}" > `; }} @@ -108,6 +108,6 @@ const IsTrue = class extends Validator { id="newsletterCheck" name="newsletterCheck" label="Subscribe to newsletter" - .validators="${[new IsTrue()]}" + .validators="${[new IsTrue(null, {type: 'info'})]}" > ```