🆙 use @ant-design/create-react-context of MIT

This commit is contained in:
afc163 2019-04-16 12:06:04 +08:00
parent 16dd4311e0
commit 0a8f33385d
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48
10 changed files with 10 additions and 10 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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;

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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",

View File

@ -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;

View File

@ -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');