mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-31 05:03:21 +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.deserialize = value => (typeof value === 'string' ? value === 'true' : false);
|
||||
BooleanType.deserialize = value => value === 'true';
|
||||
|
||||
export default BooleanType;
|
||||
|
Loading…
x
Reference in New Issue
Block a user