Fixing compilation warnings.
This commit is contained in:
parent
46cffdcc4c
commit
92700c3964
|
@ -1,5 +1,5 @@
|
||||||
import react from 'react';
|
import react from 'react';
|
||||||
import { useDispatch, useSelector } from 'react-redux';
|
import { useSelector } from 'react-redux';
|
||||||
import { MapState } from '../../store/map';
|
import { MapState } from '../../store/map';
|
||||||
import Tile from './tile';
|
import Tile from './tile';
|
||||||
|
|
||||||
|
@ -8,8 +8,7 @@ import _ from 'lodash';
|
||||||
|
|
||||||
export const tileSize = 256;
|
export const tileSize = 256;
|
||||||
|
|
||||||
const TiledMap: react.FC<{}> = (props: {}) => {
|
const TiledMap: react.FC<{}> = () => {
|
||||||
const dispatch = useDispatch();
|
|
||||||
|
|
||||||
const tilesState = useSelector((state: { map: MapState }) => state.map.tiles);
|
const tilesState = useSelector((state: { map: MapState }) => state.map.tiles);
|
||||||
console.log(`tilesState: ${JSON.stringify(tilesState)}`);
|
console.log(`tilesState: ${JSON.stringify(tilesState)}`);
|
||||||
|
|
Loading…
Reference in New Issue