Skip to content

Commit

Permalink
feat(update): minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Dec 19, 2023
1 parent d1bf845 commit 7f82a98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/features/sort/hooks/useDraggableGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type UseDraggableGridOptions = Pick<
UseDraggableSortOptions,
"initialOrder" | "onOrderChange" | "onOrderUpdate" | "shouldSwapWorklet"
> & {
gap: number;
gap?: number;
size: number;
direction: FlexStyle["flexDirection"];
};
Expand All @@ -17,7 +17,7 @@ export const useDraggableGrid = ({
initialOrder,
onOrderChange,
onOrderUpdate,
gap,
gap = 0,
size,
direction = "row",
shouldSwapWorklet = swapByItemCenterPoint,
Expand Down
8 changes: 4 additions & 4 deletions src/features/sort/hooks/useDraggableStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export type UseDraggableStackOptions = Pick<
UseDraggableSortOptions,
"initialOrder" | "onOrderChange" | "onOrderUpdate" | "shouldSwapWorklet"
> & {
gap: number;
horizontal: boolean;
gap?: number;
horizontal?: boolean;
};
export const useDraggableStack = ({
initialOrder,
onOrderChange,
onOrderUpdate,
gap,
horizontal,
gap = 0,
horizontal = false,
shouldSwapWorklet,
}: UseDraggableStackOptions) => {
const { draggableActiveId, draggableOffsets, draggableRestingOffsets, draggableLayouts } = useDndContext();
Expand Down

0 comments on commit 7f82a98

Please sign in to comment.