Refactor draggable list (#1874)

This commit is contained in:
Charles Bochet
2023-10-04 17:29:18 +02:00
committed by GitHub
parent f59dc75627
commit 13c8ee29f7
7 changed files with 78 additions and 40 deletions

View File

@ -5,7 +5,7 @@ import {
} from '@hello-pangea/dnd';
import { DraggableItem } from '@/ui/draggable-list/components/DraggableItem';
import { DroppableList } from '@/ui/draggable-list/components/DroppableList';
import { DraggableList } from '@/ui/draggable-list/components/DraggableList';
import { StyledDropdownMenuItemsContainer } from '@/ui/dropdown/components/StyledDropdownMenuItemsContainer';
import { StyledDropdownMenuSubheader } from '@/ui/dropdown/components/StyledDropdownMenuSubheader';
import { IconMinus, IconPlus } from '@/ui/icon';
@ -49,8 +49,7 @@ export const ViewFieldsVisibilityDropdownSection = ({
<StyledDropdownMenuSubheader>{title}</StyledDropdownMenuSubheader>
<StyledDropdownMenuItemsContainer>
{isDraggable && (
<DroppableList
droppableId="droppable"
<DraggableList
onDragEnd={handleOnDrag}
draggableItems={
<>