diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-17 22:35:41 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-17 22:35:41 +0100 |
commit | 27c1340dbbf18638f680be8557a531180abfd53a (patch) | |
tree | e7a2114f6ccf87655d5bdf87cfd8f83f5b93a8cb /components | |
parent | 2a0e24e24f728bbb858e11c47a08ad9d672d840e (diff) |
supposed-to-work thingy
Diffstat (limited to 'components')
-rw-r--r-- | components/voerBord.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/voerBord.tsx b/components/voerBord.tsx index 67bc86d..ce35ed8 100644 --- a/components/voerBord.tsx +++ b/components/voerBord.tsx @@ -1,7 +1,7 @@ export function VoerBord(props: { width: number; height: number; - onMove: (move: string) => void; + onMove: (move: number) => void; }) { return <table style={{ borderSpacing: 8, @@ -29,7 +29,7 @@ export function VoerBord(props: { opacity: .5, cursor: "pointer" }} id={`pos-${(props.height - row - 1) * props.width + column}`} onClick={event => { - props.onMove((event.target as HTMLElement).id.split("-")[1]) + props.onMove(Number((event.target as HTMLElement).id.split("-")[1])) }}/> </td> ))} |