File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 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" ,
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" ,
Original file line number Diff line number Diff line change 11/* tslint:disable: no-object-literal-type-assertion */
2- import createReactContext , { Context } from '@ant-design/create-react-context' ;
32import * as React from 'react' ;
43import { 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
1817export const MentionsContextProvider = MentionsContext . Provider ;
1918export const MentionsContextConsumer = MentionsContext . Consumer ;
You can’t perform that action at this time.
0 commit comments