aboutsummaryrefslogtreecommitdiff
path: root/components/voerBord.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-02-20 13:03:04 +0100
committerlonkaars <l.leblansch@gmail.com>2021-02-20 13:03:04 +0100
commite1978a9b80f3f7f5a36ca4af5f6df62f494a0d6d (patch)
tree27b2a142ad1c267f002e7c7e09ea337e4da688ac /components/voerBord.tsx
parent16044fbf61b06f4d53e2ffcab67569721b3792e2 (diff)
/game/random endpoint
Diffstat (limited to 'components/voerBord.tsx')
-rw-r--r--components/voerBord.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/voerBord.tsx b/components/voerBord.tsx
index 74db65d..8ee758b 100644
--- a/components/voerBord.tsx
+++ b/components/voerBord.tsx
@@ -11,6 +11,7 @@ export function VoerBord(props: {
width: number;
height: number;
onMove: (move: number) => void;
+ active: boolean;
}) {
return <table className="voerBord" style={{
borderSpacing: 8,
@@ -37,7 +38,7 @@ export function VoerBord(props: {
borderRadius: 6,
border: "2px solid var(--background-alt)",
opacity: .5,
- cursor: "pointer"
+ cursor: props.active ? "pointer" : "default"
}} id={`pos-${(props.height - row - 1) * props.width + column}`} onClick={event => {
props.onMove(Number((event.target as HTMLElement).id.split("-")[1]))
}}/>