Skip to content

Commit

Permalink
fix: warning for icon (#36)
Browse files Browse the repository at this point in the history
* fix: warning for icon

* chore: update deps
  • Loading branch information
vagusX authored Dec 12, 2019
1 parent de7bebc commit e3785a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test": "jest"
},
"dependencies": {
"@ant-design/compatible": "^0.0.1-alpha.5",
"@ant-design/compatible": "^0.0.1-alpha.7",
"@ant-design/icons": "^4.0.0-alpha.11",
"chalk": "^3.0.0",
"execa": "^3.4.0",
Expand Down
6 changes: 5 additions & 1 deletion transforms/utils/icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ function getV4IconComponentName(type, theme) {
return v4IconComponentName;
}

console.warn(`The icon with type: ${type} and theme ${theme} cannot found`);
console.warn(
`The icon name '${type}'${
theme ? `with ${theme}` : ''
} cannot found, please check it at https://ant.design/components/icon`,
);
}

function createIconJSXElement(j, iconLocalName) {
Expand Down

0 comments on commit e3785a4

Please sign in to comment.