afc163
9 years ago
1 changed files with 3 additions and 5 deletions
@ -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 <i className={className} {...other} />; |
|||
} |
|||
|
|||
export default Icon; |
|||
}; |
|||
|
Loading…
Reference in new issue