mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 16:39:41 +08:00
ff31a5b555
This reverts commit 7a07b128d1
.
24 lines
553 B
JavaScript
24 lines
553 B
JavaScript
import React from 'react';
|
|
import classNames from 'classnames';
|
|
import CopyableIcon from './CopyableIcon';
|
|
|
|
export default class IconSet extends React.Component {
|
|
static defaultProps = {
|
|
icons: [],
|
|
}
|
|
|
|
render() {
|
|
const className = this.props.className;
|
|
const listClassName = classNames({
|
|
'anticons-list': true,
|
|
clearfix: true,
|
|
[className]: !!className,
|
|
});
|
|
return (
|
|
<ul className={listClassName}>
|
|
{this.props.icons.map((type, i) => <CopyableIcon key={i} type={type} />)}
|
|
</ul>
|
|
);
|
|
}
|
|
}
|