Skip to content

Commit

Permalink
feat(team-rotation): add refs to dnd handles
Browse files Browse the repository at this point in the history
  • Loading branch information
sabinmarcu committed Aug 13, 2024
1 parent c4b27d5 commit a09b10e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/team-rotation/src/components/DndSort.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ export const DndSortDragHandleRaw = styled('div')({
export const DndSortDragHandleVertical = forwardRef<
HTMLDivElement,
ComponentProps<typeof DndSortDragHandleRaw>
>((properties) => (
<DndSortDragHandleRaw {...properties}>
>((properties, reference) => (
<DndSortDragHandleRaw {...properties} ref={reference}>
<DragIndicator />
</DndSortDragHandleRaw>
));

export const DndSortDragHandleHorizontal = forwardRef<
HTMLDivElement,
ComponentProps<typeof DndSortDragHandleRaw>
>((properties) => (
<DndSortDragHandleRaw {...properties}>
>((properties, reference) => (
<DndSortDragHandleRaw {...properties} ref={reference}>
<DragHandle />
</DndSortDragHandleRaw>
));
));

0 comments on commit a09b10e

Please sign in to comment.