Skip to content

Commit

Permalink
chore: return explicit JSX types so docs builds consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Mar 23, 2024
1 parent 52d48af commit 924c85a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion packages/core/components/DragDropContext/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {
} from "@measured/dnd";
import { useAppContext } from "../Puck/context";

const DefaultDragDropContext = ({ children }: DragDropContextProps) => children;
const DefaultDragDropContext = ({ children }: DragDropContextProps) => (
<>{children}</>
);

export const DragDropContext = (props: DragDropContextProps) => {
const { status } = useAppContext();
Expand Down
5 changes: 3 additions & 2 deletions packages/core/components/Draggable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ const defaultRubric: DraggableRubric = {
source: { droppableId: "", index: 0 },
};

export const DefaultDraggable = ({ children }: DraggableProps) =>
children(defaultProvided, defaultSnapshot, defaultRubric);
export const DefaultDraggable = ({ children }: DraggableProps) => (
<>{children(defaultProvided, defaultSnapshot, defaultRubric)}</>
);

export const Draggable = ({
className,
Expand Down
5 changes: 3 additions & 2 deletions packages/core/components/Droppable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ const defaultSnapshot: DroppableStateSnapshot = {
isUsingPlaceholder: false,
};

const DefaultDroppable = ({ children }: DroppableProps) =>
children(defaultProvided, defaultSnapshot);
const DefaultDroppable = ({ children }: DroppableProps) => (
<>{children(defaultProvided, defaultSnapshot)}</>
);

export const Droppable = (props: DroppableProps) => {
const { status } = useAppContext();
Expand Down

0 comments on commit 924c85a

Please sign in to comment.