Make tile groups selectable

This commit is contained in:
Mitchell McCaffrey
2021-05-20 12:22:07 +10:00
parent 05968c1964
commit ef73ca0179
10 changed files with 223 additions and 148 deletions

View File

@@ -6,8 +6,8 @@ import MapTileImage from "./MapTileImage";
function MapTile({
map,
isSelected,
onMapSelect,
onMapEdit,
onSelect,
onEdit,
onDone,
canEdit,
badges,
@@ -16,8 +16,8 @@ function MapTile({
<Tile
title={map.name}
isSelected={isSelected}
onSelect={() => onMapSelect(map)}
onEdit={() => onMapEdit(map.id)}
onSelect={() => onSelect({ id: map.id })}
onEdit={() => onEdit(map.id)}
onDoubleClick={() => canEdit && onDone()}
canEdit={canEdit}
badges={badges}