mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 20:41:07 +08:00
Simpler check.
This commit is contained in:
parent
1ad0d2ba88
commit
7371ce8288
@ -45,6 +45,6 @@ BooleanType.propTypes = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
BooleanType.serialize = value => String(value);
|
BooleanType.serialize = value => String(value);
|
||||||
BooleanType.deserialize = value => (typeof value === 'string' ? value === 'true' : false);
|
BooleanType.deserialize = value => value === 'true';
|
||||||
|
|
||||||
export default BooleanType;
|
export default BooleanType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user