Add ability to drag and drop a tile onto the map and added better drag cursors
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user