chore(switch): cleanup validator in stories

This commit is contained in:
Thomas Allmer 2019-12-13 11:42:40 +01:00 committed by Thomas Allmer
parent 5413ad130f
commit 70142b736b

View file

@ -19,8 +19,8 @@ storiesOf('Buttons|Switch', module)
) )
.add('Validation', () => { .add('Validation', () => {
class IsTrue extends Validator { class IsTrue extends Validator {
constructor() { constructor(...args) {
super(); super(...args);
this.name = 'IsTrue'; this.name = 'IsTrue';
} }
@ -37,7 +37,7 @@ storiesOf('Buttons|Switch', module)
id="newsletterCheck" id="newsletterCheck"
name="newsletterCheck" name="newsletterCheck"
label="Subscribe to newsletter" label="Subscribe to newsletter"
.validators="${[new IsTrue(null, { type: 'info' })]}" .validators="${[new IsTrue()]}"
></lion-switch> ></lion-switch>
`; `;
}) })