chore(switch): cleanup validator in stories
This commit is contained in:
parent
5413ad130f
commit
70142b736b
1 changed files with 3 additions and 3 deletions
|
|
@ -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>
|
||||||
`;
|
`;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue