mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 14:16:41 +07:00
fixed sortable audio grid
This commit is contained in:
parent
47a6e02c21
commit
37a2e54543
6 changed files with 131 additions and 90 deletions
|
@ -1,16 +1,16 @@
|
|||
import React, { createElement, FC, useMemo } from "react";
|
||||
import React, { createElement, FC, useMemo } from 'react';
|
||||
|
||||
import { closestCenter, DndContext, DragOverlay } from "@dnd-kit/core";
|
||||
import { rectSortingStrategy, SortableContext } from "@dnd-kit/sortable";
|
||||
import classNames from "classnames";
|
||||
import { closestCenter, DndContext, DragOverlay } from '@dnd-kit/core';
|
||||
import { rectSortingStrategy, SortableContext } from '@dnd-kit/sortable';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import { DragOverlayItem } from "~/components/sortable/DragOverlayItem";
|
||||
import { useSortableActions } from "~/hooks/sortable";
|
||||
import { DivProps } from "~/utils/types";
|
||||
import { DragOverlayItem } from '~/components/sortable/DragOverlayItem';
|
||||
import { useSortableActions } from '~/hooks/sortable';
|
||||
import { DivProps } from '~/utils/types';
|
||||
|
||||
import { SortableItem } from "../SortableItem";
|
||||
import { SortableItem } from '../SortableItem';
|
||||
|
||||
import styles from "./styles.module.scss";
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
interface SortableGridProps<T extends {}, R extends {}> {
|
||||
items: T[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue