Fix warnings

This commit is contained in:
Mitchell McCaffrey 2021-02-12 00:38:36 +11:00
parent 002a52674b
commit 9370365ab4
4 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,6 @@ import {
getRelativePointerPosition,
} from "../../helpers/konva";
import useDebounce from "../../hooks/useDebounce";
import useSetting from "../../hooks/useSetting";
function MapFog({

View File

@ -1,4 +1,4 @@
import React, { useContext, useCallback } from "react";
import React, { useContext } from "react";
import Vector2 from "../helpers/Vector2";
import Size from "../helpers/Size";

View File

@ -1,5 +1,6 @@
import React, { useState, useEffect, useRef } from "react";
import { Line, Group, Path, Circle } from "react-konva";
// eslint-disable-next-line no-unused-vars
import Konva from "konva";
import Color from "color";
import Vector2 from "./Vector2";

View File

@ -45,7 +45,7 @@ function EditMapModal({ isOpen, onDone, mapId }) {
setMap();
setMapState();
}
}, [isOpen, mapId, getMapFromDB, mapStates]);
}, [isOpen, mapId, getMapFromDB, mapStates, getMap]);
function handleClose() {
setMapSettingChanges({});