Browse Source

update icon stateless component

pull/653/head
afc163 9 years ago
parent
commit
a9818876e9
  1. 8
      components/icon/index.jsx

8
components/icon/index.jsx

@ -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…
Cancel
Save