Skip to content

Commit

Permalink
fix(react18): add children to ReactSortableProps
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Apr 13, 2022
1 parent 8c7914d commit f6b4e2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export {
SortableEvent,
SortableOptions,
Utils,
} from "sortablejs"
export { ReactSortable } from "./react-sortable"
export * from "./types"
} from "sortablejs";
export { ReactSortable } from "./react-sortable";
export * from "./types";
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
CSSProperties,
ForwardRefExoticComponent,
ReactHTML,
ReactNode,
RefAttributes,
} from "react";
import Sortable, { MoveEvent, Options, SortableEvent } from "sortablejs";
Expand Down Expand Up @@ -57,6 +58,7 @@ export interface ReactSortableProps<T>
style?: CSSProperties;
className?: string;
id?: string;
children?: ReactNode;
}

/**
Expand Down

0 comments on commit f6b4e2e

Please sign in to comment.