Skip to content

Commit

Permalink
chore: Compatible old antd v4
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Sep 16, 2020
1 parent fdc26ce commit 723bf1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/form/FormItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,6 @@ export default class FormItem extends React.Component<FormItemProps, any> {
};

render() {
return (
<CompatibleConsumer>
{this.renderFormItem}
</CompatibleConsumer>
);
return <CompatibleConsumer>{this.renderFormItem}</CompatibleConsumer>;
}
}
6 changes: 1 addition & 5 deletions src/mention/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,7 @@ class Mention extends React.Component<MentionProps, MentionState> {
};

render() {
return (
<CompatibleConsumer>
{this.renderMention}
</CompatibleConsumer>
);
return <CompatibleConsumer>{this.renderMention}</CompatibleConsumer>;
}
}

Expand Down

0 comments on commit 723bf1d

Please sign in to comment.