Skip to content

Commit

Permalink
Remove unnecessary div in ToolbarItem component
Browse files Browse the repository at this point in the history
  • Loading branch information
lassopicasso committed Oct 30, 2024
1 parent 39a9425 commit 71a7607
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions frontend/packages/ux-editor/src/components/Elements/ToolbarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,15 @@ export const ToolbarItem = ({
icon,
}: ToolbarItemProps) => {
return (
<div>
<DragAndDropTree.NewItem<ComponentType | CustomComponentType>
notDraggable={notDraggable}
payload={componentType}
>
<ToolbarItemComponent
componentType={componentType}
componentTitle={componentTitle}
icon={icon}
/>
</DragAndDropTree.NewItem>
</div>
<DragAndDropTree.NewItem<ComponentType | CustomComponentType>
notDraggable={notDraggable}
payload={componentType}
>
<ToolbarItemComponent
componentType={componentType}
componentTitle={componentTitle}
icon={icon}
/>
</DragAndDropTree.NewItem>
);
};

0 comments on commit 71a7607

Please sign in to comment.