Added token edit modal, refactored map and token data providers
Refactored image drop code into reusable component as well
This commit is contained in:
@@ -15,7 +15,7 @@ function MapTile({
|
||||
onMapSelect,
|
||||
onMapRemove,
|
||||
onMapReset,
|
||||
onSubmit,
|
||||
onDone,
|
||||
}) {
|
||||
const mapSource = useDataSource(map, defaultMapSources);
|
||||
const [isMapTileMenuOpen, setIsTileMenuOpen] = useState(false);
|
||||
@@ -108,7 +108,7 @@ function MapTile({
|
||||
}}
|
||||
onDoubleClick={(e) => {
|
||||
if (!isMapTileMenuOpen) {
|
||||
onSubmit(e);
|
||||
onDone(e);
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user