diff --git a/packages/devtools-conversion/src/createClass.js b/packages/devtools-conversion/src/createClass.js index bae85f7..33dfcb2 100644 --- a/packages/devtools-conversion/src/createClass.js +++ b/packages/devtools-conversion/src/createClass.js @@ -220,6 +220,9 @@ export function handlePropsType(propsItem?: any): string { if (type === 'object') { return `{ ${JSON.stringify(propsItem)} }`; } + if (type === 'boolean') { + return `{ ${propsItem} }`; + } if (type === 'number') { return `{ ${propsItem} }`; } diff --git a/packages/devtools-conversion/test/__snapshots__/index.test.js.snap b/packages/devtools-conversion/test/__snapshots__/index.test.js.snap index 93ac3da..f60154b 100644 --- a/packages/devtools-conversion/test/__snapshots__/index.test.js.snap +++ b/packages/devtools-conversion/test/__snapshots__/index.test.js.snap @@ -35,7 +35,7 @@ exports[`conversion index -> Card Container 1`] = ` height: 102 + 'px', zIndex: '0', left: 42 + 'px', top: 71 + 'px' }} - >