afc163
9 years ago
1 changed files with 3 additions and 7 deletions
@ -1,10 +1,6 @@ |
|||
import React from 'react'; |
|||
import splitObject from '../_util/splitObject'; |
|||
import * as React from 'react'; |
|||
|
|||
export default props => { |
|||
const [{type, className = ''}, others] = splitObject(props, |
|||
['type','className']); |
|||
|
|||
let className2 = `${className} anticon anticon-${type}`.trim(); |
|||
return <i className={className2} {...others} />; |
|||
const { type, className = '' } = props; |
|||
return <i {...props} className={`${className} anticon anticon-${type}`.trim()} /> |
|||
}; |
|||
|
Loading…
Reference in new issue