diff --git a/components/config-provider/index.tsx b/components/config-provider/index.tsx index 401879984e..9ca54423f9 100644 --- a/components/config-provider/index.tsx +++ b/components/config-provider/index.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import createReactContext, { Context } from 'create-react-context'; +import createReactContext, { Context } from '@ant-design/create-react-context'; import defaultRenderEmpty, { RenderEmptyHandler } from './renderEmpty'; diff --git a/components/drawer/index.tsx b/components/drawer/index.tsx index 40b271b95c..65bdeae29c 100644 --- a/components/drawer/index.tsx +++ b/components/drawer/index.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import * as PropTypes from 'prop-types'; import RcDrawer from 'rc-drawer'; -import createReactContext, { Context } from 'create-react-context'; +import createReactContext, { Context } from '@ant-design/create-react-context'; import warning from '../_util/warning'; import classNames from 'classnames'; import Icon from '../icon'; diff --git a/components/form/context.ts b/components/form/context.ts index cb58a6698a..9caf0828fc 100644 --- a/components/form/context.ts +++ b/components/form/context.ts @@ -1,4 +1,4 @@ -import createReactContext, { Context } from 'create-react-context'; +import createReactContext, { Context } from '@ant-design/create-react-context'; import { ColProps } from '../grid/col'; import { FormLabelAlign } from './FormItem'; diff --git a/components/grid/RowContext.tsx b/components/grid/RowContext.tsx index 67d347ceb5..c16af4888b 100644 --- a/components/grid/RowContext.tsx +++ b/components/grid/RowContext.tsx @@ -1,4 +1,4 @@ -import createContext, { Context } from 'create-react-context'; +import createContext, { Context } from '@ant-design/create-react-context'; export interface RowContextState { gutter?: number; diff --git a/components/layout/Sider.tsx b/components/layout/Sider.tsx index 5ee8b6f8c1..a9fc6e7d63 100644 --- a/components/layout/Sider.tsx +++ b/components/layout/Sider.tsx @@ -1,4 +1,4 @@ -import createContext, { Context } from 'create-react-context'; +import createContext, { Context } from '@ant-design/create-react-context'; import { ConfigConsumer, ConfigConsumerProps } from '../config-provider'; import { LayoutContext, LayoutContextProps } from './layout'; diff --git a/components/layout/layout.tsx b/components/layout/layout.tsx index 354e1faf72..8a03fdb73d 100644 --- a/components/layout/layout.tsx +++ b/components/layout/layout.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import classNames from 'classnames'; -import createContext, { Context } from 'create-react-context'; +import createContext, { Context } from '@ant-design/create-react-context'; import { SiderProps } from './Sider'; import { ConfigConsumer, ConfigConsumerProps } from '../config-provider'; diff --git a/components/menu/index.tsx b/components/menu/index.tsx index 80694a4417..5cd00864c7 100644 --- a/components/menu/index.tsx +++ b/components/menu/index.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import RcMenu, { Divider, ItemGroup } from 'rc-menu'; -import createContext, { Context } from 'create-react-context'; +import createContext, { Context } from '@ant-design/create-react-context'; import classNames from 'classnames'; import omit from 'omit.js'; import SubMenu from './SubMenu'; diff --git a/package.json b/package.json index 9be217e057..4a622b2c31 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "classnames": "~2.2.6", "copy-to-clipboard": "^3.0.8", "create-react-class": "^15.6.3", - "create-react-context": "0.2.2", + "@ant-design/create-react-context": "^0.2.4", "css-animation": "^1.5.0", "dom-closest": "^0.2.0", "enquire.js": "^2.1.6", diff --git a/tests/__mocks__/create-react-context.js b/tests/__mocks__/create-react-context.js index 1e974dbd53..be08fbd11f 100644 --- a/tests/__mocks__/create-react-context.js +++ b/tests/__mocks__/create-react-context.js @@ -1,3 +1,3 @@ -import createReactContext from 'create-react-context/lib/implementation'; +import createReactContext from '@ant-design/create-react-context/lib/implementation'; export default createReactContext; diff --git a/tests/__mocks__/react.js b/tests/__mocks__/react.js index f3eb475a12..e68a1a7413 100644 --- a/tests/__mocks__/react.js +++ b/tests/__mocks__/react.js @@ -1,4 +1,4 @@ -import createReactContext from 'create-react-context/lib/implementation'; +import createReactContext from '@ant-design/create-react-context/lib/implementation'; const React = require.requireActual('react');