mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 23:59:12 +08:00
6465712385
fixed #307
14 lines
261 B
JavaScript
14 lines
261 B
JavaScript
import React from 'react';
|
|
|
|
class Icon extends React.Component {
|
|
|
|
render() {
|
|
let {type, className = '', ...other} = this.props;
|
|
className += ` anticon anticon-${type}`;
|
|
return <i className={className} {...other}></i>;
|
|
}
|
|
|
|
}
|
|
|
|
export default Icon;
|