Skip to content

Commit

Permalink
refactor: import from entry to support external (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoidjk committed Sep 16, 2020
1 parent a53186d commit 9f4113d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/mention/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import RcMention, {
getMentions,
} from 'rc-editor-mention';
import classNames from 'classnames';
import { ConfigConsumer, ConfigConsumerProps } from 'antd/lib/config-provider';
import { ConfigProvider } from 'antd';
import { ConfigConsumerProps } from 'antd/lib/config-provider';
import Icon from '../icon';
import upgradeMessage from '../_util/upgradeMessage';

Expand Down Expand Up @@ -169,7 +170,11 @@ class Mention extends React.Component<MentionProps, MentionState> {
};

render() {
return <ConfigConsumer>{this.renderMention}</ConfigConsumer>;
return (
<ConfigProvider.ConfigContext.Consumer>
{this.renderMention}
</ConfigProvider.ConfigContext.Consumer>
);
}
}

Expand Down

1 comment on commit 9f4113d

@vercel
Copy link

@vercel vercel bot commented on 9f4113d Sep 16, 2020

Choose a reason for hiding this comment

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

Deployment failed with the following error:

The most recent charge for your active payment method has failed. Please update it here: https://vercel.com/teams/pro-components/settings/billing

Please sign in to comment.