Add sub groups to group table

This commit is contained in:
Mitchell McCaffrey
2021-05-14 18:02:50 +10:00
parent ab800150ec
commit 05968c1964
18 changed files with 272 additions and 116 deletions

View File

@@ -0,0 +1,33 @@
import React from "react";
import Tile from "../Tile";
import MapTileImage from "./MapTileImage";
function MapTileGroup({
group,
maps,
isSelected,
onGroupSelect,
onOpen,
canOpen,
}) {
return (
<Tile
title={group.name}
isSelected={isSelected}
// onSelect={() => onGroupSelect(group)}
// onDoubleClick={() => canOpen && onOpen()}
columns="1fr 1fr"
>
{maps.slice(0, 4).map((map) => (
<MapTileImage
sx={{ padding: 1, borderRadius: "8px" }}
map={map}
key={map.id}
/>
))}
</Tile>
);
}
export default MapTileGroup;