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:
@@ -16,14 +16,16 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import React, {
|
||||
import {
|
||||
useCallback,
|
||||
useRef,
|
||||
ReactNode,
|
||||
HTMLProps,
|
||||
MutableRefObject,
|
||||
CSSProperties,
|
||||
DragEvent,
|
||||
} from 'react';
|
||||
|
||||
import {
|
||||
useTable,
|
||||
usePagination,
|
||||
@@ -223,7 +225,7 @@ export default typedMemo(function DataTable<D extends object>({
|
||||
|
||||
let columnBeingDragged = -1;
|
||||
|
||||
const onDragStart = (e: React.DragEvent) => {
|
||||
const onDragStart = (e: DragEvent) => {
|
||||
const el = e.target as HTMLTableCellElement;
|
||||
columnBeingDragged = allColumns.findIndex(
|
||||
col => col.id === el.dataset.columnName,
|
||||
@@ -231,7 +233,7 @@ export default typedMemo(function DataTable<D extends object>({
|
||||
e.dataTransfer.setData('text/plain', `${columnBeingDragged}`);
|
||||
};
|
||||
|
||||
const onDrop = (e: React.DragEvent) => {
|
||||
const onDrop = (e: DragEvent) => {
|
||||
const el = e.target as HTMLTableCellElement;
|
||||
const newPosition = allColumns.findIndex(
|
||||
col => col.id === el.dataset.columnName,
|
||||
|
||||
Reference in New Issue
Block a user