Refactor map and token image

This commit is contained in:
Mitchell McCaffrey
2021-05-25 16:56:37 +10:00
parent 71b8aeec6c
commit d55514ef7c
7 changed files with 19 additions and 28 deletions

View File

@@ -2,7 +2,7 @@ import React from "react";
import { Grid } from "theme-ui";
import Tile from "../tile/Tile";
import MapTileImage from "./MapTileImage";
import MapImage from "./MapImage";
import useResponsiveLayout from "../../hooks/useResponsiveLayout";
@@ -22,7 +22,7 @@ function MapTileGroup({ group, maps, isSelected, onSelect, onDoubleClick }) {
sx={{ gridGap: 2 }}
>
{maps.slice(0, 9).map((map) => (
<MapTileImage
<MapImage
sx={{ borderRadius: "8px" }}
map={map}
key={`${map.id}-group-tile`}