Skip to content

Commit

Permalink
remove @ant-design/create-react-context
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 23, 2019
1 parent f6935db commit 144b45f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rc-mentions",
"version": "1.0.0-alpha.0",
"version": "1.0.0-alpha.1",
"description": "React Mentions",
"keywords": [
"react",
Expand Down Expand Up @@ -53,7 +53,6 @@
"typescript": "^3.2.2"
},
"dependencies": {
"@ant-design/create-react-context": "^0.2.4",
"classnames": "^2.2.6",
"rc-menu": "^8.0.0-alpha.2",
"rc-trigger": "^4.0.0-alpha.4",
Expand Down
3 changes: 1 addition & 2 deletions src/MentionsContext.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* tslint:disable: no-object-literal-type-assertion */
import createReactContext, { Context } from '@ant-design/create-react-context';
import * as React from 'react';
import { OptionProps } from './Option';

Expand All @@ -13,7 +12,7 @@ export interface MentionsContextProps {
}

// We will never use default, here only to fix TypeScript warning
const MentionsContext: Context<MentionsContextProps> = createReactContext(null);
const MentionsContext: React.Context<MentionsContextProps> = React.createContext(null);

export const MentionsContextProvider = MentionsContext.Provider;
export const MentionsContextConsumer = MentionsContext.Consumer;

0 comments on commit 144b45f

Please sign in to comment.