Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Icon add displayName #5643

Merged
merged 5 commits into from
Apr 13, 2017
Merged

fix: Icon add displayName #5643

merged 5 commits into from
Apr 13, 2017

Conversation

handycode
Copy link
Contributor

No description provided.

@mention-bot
Copy link

@handycode, thanks for your PR! By analyzing the history of the files in this pull request, we identified @afc163, @benjycui and @yiminghe to be potential reviewers.

@handycode handycode changed the title bugfix: Icon add displayName fix: Icon add displayName Apr 5, 2017
@@ -11,7 +11,7 @@ export interface IconProps {
style?: React.CSSProperties;
}

export default (props: IconProps) => {
const icon = (props: IconProps) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uppercase first letter.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

function Icon() {
  ...
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -20,3 +20,7 @@ export default (props: IconProps) => {
}, className);
return <i {...omit(props, ['type', 'spin'])} className={classString} />;
};

(Icon as any).displayName = 'Icon';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line would be unnecessary

@afc163 afc163 merged commit c1c261e into ant-design:master Apr 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants