From 92700c396426d50f6fac9d8c669f3cec05d5eca4 Mon Sep 17 00:00:00 2001 From: evlist Date: Tue, 20 Sep 2022 17:38:24 +0200 Subject: [PATCH] Fixing compilation warnings. --- src/components/map/tiled-map.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/map/tiled-map.tsx b/src/components/map/tiled-map.tsx index c0f1ad4..82a3dde 100644 --- a/src/components/map/tiled-map.tsx +++ b/src/components/map/tiled-map.tsx @@ -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)}`);