mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
chore: remove React 16.4's obsolete React imports (#28571)
Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
import { snakeCase, isEqual, cloneDeep } from 'lodash';
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import { createRef, Component } from 'react';
|
||||
import {
|
||||
SuperChart,
|
||||
logging,
|
||||
@@ -81,7 +81,7 @@ const defaultProps = {
|
||||
triggerRender: false,
|
||||
};
|
||||
|
||||
class ChartRenderer extends React.Component {
|
||||
class ChartRenderer extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
@@ -94,7 +94,7 @@ class ChartRenderer extends React.Component {
|
||||
};
|
||||
this.hasQueryResponseChange = false;
|
||||
|
||||
this.contextMenuRef = React.createRef();
|
||||
this.contextMenuRef = createRef();
|
||||
|
||||
this.handleAddFilter = this.handleAddFilter.bind(this);
|
||||
this.handleRenderSuccess = this.handleRenderSuccess.bind(this);
|
||||
|
||||
Reference in New Issue
Block a user