mirror of
https://github.com/ant-design/ant-design.git
synced 2025-07-24 15:38:45 +08:00
Icon组件增加displayName
This commit is contained in:
parent
fda4e8414d
commit
93cc6d5cbc
@ -11,7 +11,7 @@ export interface IconProps {
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export default (props: IconProps) => {
|
||||
const icon = (props: IconProps) => {
|
||||
const { type, className = '', spin } = props;
|
||||
const classString = classNames({
|
||||
anticon: true,
|
||||
@ -20,3 +20,7 @@ export default (props: IconProps) => {
|
||||
}, className);
|
||||
return <i {...omit(props, ['type', 'spin'])} className={classString} />;
|
||||
};
|
||||
|
||||
icon.displayName = 'Icon';
|
||||
|
||||
export default icon;
|
||||
|
Loading…
Reference in New Issue
Block a user