Skip to content

Commit 144b45f

Browse files
committed
remove @ant-design/create-react-context
1 parent f6935db commit 144b45f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-mentions",
3-
"version": "1.0.0-alpha.0",
3+
"version": "1.0.0-alpha.1",
44
"description": "React Mentions",
55
"keywords": [
66
"react",
@@ -53,7 +53,6 @@
5353
"typescript": "^3.2.2"
5454
},
5555
"dependencies": {
56-
"@ant-design/create-react-context": "^0.2.4",
5756
"classnames": "^2.2.6",
5857
"rc-menu": "^8.0.0-alpha.2",
5958
"rc-trigger": "^4.0.0-alpha.4",

src/MentionsContext.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* tslint:disable: no-object-literal-type-assertion */
2-
import createReactContext, { Context } from '@ant-design/create-react-context';
32
import * as React from 'react';
43
import { OptionProps } from './Option';
54

@@ -13,7 +12,7 @@ export interface MentionsContextProps {
1312
}
1413

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

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

0 commit comments

Comments
 (0)