mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +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;
|