mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
🆙 use @ant-design/create-react-context of MIT
This commit is contained in:
parent
16dd4311e0
commit
0a8f33385d
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
|
2
tests/__mocks__/react.js
vendored
2
tests/__mocks__/react.js
vendored
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user