saleor-dashboard/src/components/SortableTable/SortableTableRow.tsx

16 lines
413 B
TypeScript
Raw Normal View History

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";
import SortableHandle from "./SortableHandle";
const SortableTableRow = SortableElement<TableRowProps>(
({ children, ...props }) => (
<TableRow {...props}>
<SortableHandle />
{children}
</TableRow>
)
);
export default SortableTableRow;