afc163
9 years ago
1 changed files with 3 additions and 5 deletions
@ -1,9 +1,7 @@ |
|||||
import React from 'react'; |
import React from 'react'; |
||||
|
|
||||
function Icon(props) { |
export default props => { |
||||
let {type, className = '', ...other} = props; |
let { type, className = '', ...other } = props; |
||||
className += ` anticon anticon-${type}`; |
className += ` anticon anticon-${type}`; |
||||
return <i className={className} {...other} />; |
return <i className={className} {...other} />; |
||||
} |
}; |
||||
|
|
||||
export default Icon; |
|
||||
|
Loading…
Reference in new issue