mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
chore: remove React 16.4's obsolete React imports (#28571)
Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -16,7 +16,8 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import React, { useState, useEffect, useMemo } from 'react';
|
||||
import { useState, useEffect, useMemo, ChangeEvent } from 'react';
|
||||
|
||||
import type { DatabaseObject } from 'src/features/databases/types';
|
||||
import { Row, Col } from 'src/components';
|
||||
import { Input, TextArea } from 'src/components/Input';
|
||||
@@ -138,11 +139,11 @@ const SaveQuery = ({
|
||||
close();
|
||||
};
|
||||
|
||||
const onLabelChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const onLabelChange = (e: ChangeEvent<HTMLInputElement>) => {
|
||||
setLabel(e.target.value);
|
||||
};
|
||||
|
||||
const onDescriptionChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
|
||||
const onDescriptionChange = (e: ChangeEvent<HTMLTextAreaElement>) => {
|
||||
setDescription(e.target.value);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user