Fixing compilation warnings.

This commit is contained in:
Eric van der Vlist 2022-09-20 17:38:24 +02:00
parent 46cffdcc4c
commit 92700c3964
1 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import react from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { useSelector } from 'react-redux';
import { MapState } from '../../store/map';
import Tile from './tile';
@ -8,8 +8,7 @@ import _ from 'lodash';
export const tileSize = 256;
const TiledMap: react.FC<{}> = (props: {}) => {
const dispatch = useDispatch();
const TiledMap: react.FC<{}> = () => {
const tilesState = useSelector((state: { map: MapState }) => state.map.tiles);
console.log(`tilesState: ${JSON.stringify(tilesState)}`);