chore: remove React 16.4's obsolete React imports (#28571)

Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
Đỗ Trọng Hải
2024-06-05 18:13:24 +07:00
committed by GitHub
parent 8a8ce16a1f
commit 0ca42a8e4d
1173 changed files with 1360 additions and 1880 deletions

View File

@@ -17,7 +17,8 @@
* under the License.
*/
import React, { useCallback, useState } from 'react';
import { useCallback, useState, FormEvent } from 'react';
import { Radio } from 'src/components/Radio';
import { RadioChangeEvent, AsyncSelect } from 'src/components';
import { Input } from 'src/components/Input';
@@ -328,7 +329,7 @@ export const SaveDatasetModal = ({
setSelectedDatasetToOverwrite(value);
};
const handleDatasetNameChange = (e: React.FormEvent<HTMLInputElement>) => {
const handleDatasetNameChange = (e: FormEvent<HTMLInputElement>) => {
// @ts-expect-error
setDatasetName(e.target.value);
};