mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: upgrade @emotion (#14454)
This commit is contained in:
@@ -26,7 +26,7 @@ import { debounce } from 'lodash';
|
||||
import { Resizable } from 're-resizable';
|
||||
|
||||
import { useDynamicPluginContext } from 'src/components/DynamicPlugins';
|
||||
import { Global } from '@emotion/core';
|
||||
import { Global } from '@emotion/react';
|
||||
import { Tooltip } from 'src/components/Tooltip';
|
||||
import { usePrevious } from 'src/common/hooks/usePrevious';
|
||||
import Icon from 'src/components/Icon';
|
||||
|
||||
@@ -20,7 +20,7 @@ import React from 'react';
|
||||
import { useTheme, t } from '@superset-ui/core';
|
||||
|
||||
import { Tooltip } from 'src/components/Tooltip';
|
||||
import { ClassNames } from '@emotion/core';
|
||||
import { ClassNames } from '@emotion/react';
|
||||
|
||||
const TIME_PICKER_HELPER = (
|
||||
<>
|
||||
|
||||
@@ -71,7 +71,7 @@ function setup(overrides) {
|
||||
...overrides,
|
||||
};
|
||||
const wrapper = shallow(<AdhocFilterControl {...props} />);
|
||||
const component = wrapper.dive().shallow();
|
||||
const component = wrapper.shallow();
|
||||
return { wrapper, component, onChange };
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@ const selectedMetricType = PropTypes.oneOfType([
|
||||
]);
|
||||
|
||||
const propTypes = {
|
||||
label: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
||||
name: PropTypes.string,
|
||||
onChange: PropTypes.func,
|
||||
value: PropTypes.arrayOf(adhocFilterType),
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { css } from '@emotion/core';
|
||||
import { css } from '@emotion/react';
|
||||
import { t } from '@superset-ui/core';
|
||||
import Label from 'src/components/Label';
|
||||
import Collapse from 'src/components/Collapse';
|
||||
|
||||
Reference in New Issue
Block a user