Skip to content

Commit 64b7b19

Browse files
committed
fix build
1 parent 29ff461 commit 64b7b19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/docs/docs/dnd/1-overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const tree = useTree<Item>({
6767

6868
## The Drop Event
6969

70-
When the user drops tree items onto a target within the tree, the [`onDrop`](/api/core/interface/dragAndDropFeatureConfig#onDrop) event is called
70+
When the user drops tree items onto a target within the tree, the [`onDrop`](/api/core/interface/DragAndDropFeatureConfig#onDrop) event is called
7171
with the list of items that were dragged, and a [drop target](/api/core#DropTarget). This drop target is an object that contains
7272
either
7373

packages/docs/src/components/demo/demo-box.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ export type DemoBoxProps = {
1717
};
1818

1919
const storybookRoot =
20-
window.location.hostname === "localhost"
21-
? "http://localhost:6006"
22-
: "https://headless-tree.lukasbach.com/storybook/react";
20+
process.env.NODE_ENV === "production"
21+
? "https://headless-tree.lukasbach.com/storybook/react"
22+
: "http://localhost:6006";
2323

2424
export const DemoBox: FC<DemoBoxProps> = ({
2525
stories,

0 commit comments

Comments
 (0)