Skip to content

Commit

Permalink
Update:
Browse files Browse the repository at this point in the history
    * Refactor the code;
  • Loading branch information
grguang authored and zenjava committed Sep 12, 2019
1 parent 3de04f8 commit 2cd59b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/devtools-conversion/src/createClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,7 @@ export function handlePropsType(propsItem?: any): string {
if (type === 'object') {
return `{ ${JSON.stringify(propsItem)} }`;
}
if (type === 'boolean') {
return `{ ${propsItem} }`;
}
if (type === 'number') {
if (type === 'number' || type === 'boolean') {
return `{ ${propsItem} }`;
}
if (type === 'string') {
Expand Down

0 comments on commit 2cd59b8

Please sign in to comment.