Files
grungnet/src/components/ListToken.js
Mitchell McCaffrey cb93922d59 Added initial token label
Added token pop up menu
Added token label
Added better token positioning
Split tokens into list and map variants
Moved size input to more generic number input
Changed game handler names to be more consistent
2020-04-13 00:24:03 +10:00

22 lines
471 B
JavaScript

import React, { useRef } from "react";
import { Image } from "theme-ui";
import usePreventTouch from "../helpers/usePreventTouch";
function ListToken({ image, className }) {
const imageRef = useRef();
// Stop touch to prevent 3d touch gesutre on iOS
usePreventTouch(imageRef);
return (
<Image
src={image}
ref={imageRef}
className={className}
sx={{ userSelect: "none", touchAction: "none" }}
/>
);
}
export default ListToken;