2019-08-09 10:17:04 +00:00
|
|
|
import TableRow, { TableRowProps } from "@material-ui/core/TableRow";
|
|
|
|
import React from "react";
|
|
|
|
import { SortableElement } from "react-sortable-hoc";
|
2020-05-14 09:30:32 +00:00
|
|
|
|
2019-08-09 10:17:04 +00:00
|
|
|
import SortableHandle from "./SortableHandle";
|
|
|
|
|
|
|
|
const SortableTableRow = SortableElement<TableRowProps>(
|
|
|
|
({ children, ...props }) => (
|
|
|
|
<TableRow {...props}>
|
|
|
|
<SortableHandle />
|
|
|
|
{children}
|
|
|
|
</TableRow>
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
export default SortableTableRow;
|