Skip to content

Commit

Permalink
tsd
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSpencer committed Jun 15, 2024
1 parent 49fda2f commit b222c37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/dnd/Container.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React, { Component } from "react";
import ReactDOM from "react-dom";
import container, { dropHandlers } from "trello-smooth-dnd";
// import container, { dropHandlers } from "trello-smooth-dnd";
const tsd = require("trello-smooth-dnd");
const container = tsd.container;
const dropHandlers = tsd.dropHandlers;

container.dropHandler = dropHandlers.reactDropHandler().handler;
container.wrapChild = (p: any) => p; // dont wrap children they will already be wrapped
Expand Down
2 changes: 1 addition & 1 deletion src/dnd/Draggable.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component, ReactElement } from "react";
import { constants } from "trello-smooth-dnd";
const constants = require("trello-smooth-dnd").constants;
const { wrapperClass } = constants;

export class Draggable extends Component<{
Expand Down

0 comments on commit b222c37

Please sign in to comment.