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', () => {
|
||||
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()]}"
|
||||
></lion-switch>
|
||||
`;
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue