This commit is contained in:
aronmal 2023-01-11 21:13:46 +01:00
parent ee08d3fc1f
commit 76f69a06bd
Signed by: aronmal
GPG key ID: 816B7707426FC612
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ function Ships() {
{shipIndexes.map(({ size, index }, i) => {
const filename = `/assets/ship_blue_${size}x${index ? '_' + index : ''}.gif`
return (
<div key={i} className={classNames('ship', size)} style={{ '--x': i + 3 } as CSSProperties}>
<div key={i} className={classNames('ship', 's' + size)} style={{ '--x': i + 3 } as CSSProperties}>
<img src={filename} alt={filename} />
</div>
)

View file

@ -71,7 +71,7 @@ function useGameEvent(count: number) {
const Targets = useCallback((targets: { show: boolean, x: number, y: number, edges: string[] }[], preview?: boolean) => {
const { type } = scopeGrid
return targets.map(({ edges, ...target }, i) => <Target key={i} props={{ type, preview, edges }} target={target} />)
}, [scopeGrid, mode])
}, [scopeGrid])
useEffect(() => {
const { fields } = scopeGrid