chore: upgrade @emotion (#14454)

This commit is contained in:
Jesse Yang
2021-05-04 15:26:16 -07:00
committed by GitHub
parent d138b4407d
commit 23014e9233
26 changed files with 1965 additions and 4941 deletions

View File

@@ -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 = (
<>

View File

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

View File

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

View File

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