mirror of
https://github.com/apache/superset.git
synced 2026-05-30 04:39:20 +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, { FunctionComponent, useState, useEffect } from 'react';
|
||||
import { FunctionComponent, useState, useEffect, ChangeEvent } from 'react';
|
||||
|
||||
import { styled, t } from '@superset-ui/core';
|
||||
import { useSingleViewResource } from 'src/views/CRUD/hooks';
|
||||
|
||||
@@ -157,9 +158,7 @@ const AnnotationLayerModal: FunctionComponent<AnnotationLayerModalProps> = ({
|
||||
};
|
||||
|
||||
const onTextChange = (
|
||||
event:
|
||||
| React.ChangeEvent<HTMLTextAreaElement>
|
||||
| React.ChangeEvent<HTMLInputElement>,
|
||||
event: ChangeEvent<HTMLTextAreaElement> | ChangeEvent<HTMLInputElement>,
|
||||
) => {
|
||||
const { target } = event;
|
||||
const data = {
|
||||
|
||||
Reference in New Issue
Block a user