Browse Source

update icon stateless component

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

6
components/icon/index.jsx

@ -1,9 +1,7 @@
import React from 'react';
function Icon(props) {
export default props => {
let { type, className = '', ...other } = props;
className += ` anticon anticon-${type}`;
return <i className={className} {...other} />;
}
export default Icon;
};

Loading…
Cancel
Save