Fixing compilation warnings.
This commit is contained in:
parent
46cffdcc4c
commit
92700c3964
|
@ -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)}`);
|
||||
|
|
Loading…
Reference in New Issue