From 70142b736bcde0e4f0ecf429b85372c0ee062d6a Mon Sep 17 00:00:00 2001 From: Thomas Allmer Date: Fri, 13 Dec 2019 11:42:40 +0100 Subject: [PATCH] chore(switch): cleanup validator in stories --- packages/switch/stories/index.stories.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/switch/stories/index.stories.js b/packages/switch/stories/index.stories.js index fcb306449..b1fd9f0fe 100644 --- a/packages/switch/stories/index.stories.js +++ b/packages/switch/stories/index.stories.js @@ -19,8 +19,8 @@ storiesOf('Buttons|Switch', module) ) .add('Validation', () => { class IsTrue extends Validator { - constructor() { - super(); + constructor(...args) { + super(...args); this.name = 'IsTrue'; } @@ -37,7 +37,7 @@ storiesOf('Buttons|Switch', module) id="newsletterCheck" name="newsletterCheck" label="Subscribe to newsletter" - .validators="${[new IsTrue(null, { type: 'info' })]}" + .validators="${[new IsTrue()]}" > `; })