diff --git a/components/icon/index.jsx b/components/icon/index.jsx index 0e70bb3a69..6779d1b09c 100644 --- a/components/icon/index.jsx +++ b/components/icon/index.jsx @@ -1,9 +1,7 @@ import React from 'react'; -function Icon(props) { - let {type, className = '', ...other} = props; +export default props => { + let { type, className = '', ...other } = props; className += ` anticon anticon-${type}`; return ; -} - -export default Icon; +};