Add ability to drag and drop a tile onto the map and added better drag cursors

This commit is contained in:
Mitchell McCaffrey
2021-05-28 17:06:20 +10:00
parent f84baab6fb
commit bac3101886
12 changed files with 400 additions and 186 deletions

View File

@@ -13,6 +13,7 @@ function SortableTile({
hidden,
children,
isDragging,
cursor,
}) {
const {
attributes,
@@ -29,7 +30,7 @@ function SortableTile({
});
const dragStyle = {
cursor: "pointer",
cursor,
opacity: isDragging ? 0.25 : undefined,
};
@@ -92,4 +93,8 @@ function SortableTile({
);
}
SortableTile.defaultProps = {
cursor: "pointer",
};
export default SortableTile;