diff --git a/package.json b/package.json index dd1e25e..5b9b76e 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ "@testing-library/user-event": "^13.5.0", "react": "^17.0.2", "react-dom": "^17.0.2", + "react-moment": "^1.1.1", + "react-router-dom": "^6.2.1", "react-scripts": "5.0.0", "web-vitals": "^2.1.2" }, diff --git a/src/App.js b/src/App.js index 044606f..e8e177e 100755 --- a/src/App.js +++ b/src/App.js @@ -8,9 +8,7 @@ import 'core-js/features/number/is-nan'; import React from "react"; import Button from '@material-ui/core/Button'; import AppBar from '@material-ui/core/AppBar'; -import Box from '@material-ui/core/Box'; import Toolbar from '@material-ui/core/Toolbar'; -import { makeStyles } from '@material-ui/core/styles'; import { Router, Route } from "react-router-dom"; //import 'typeface-roboto'; diff --git a/src/Board.js b/src/Board.js index 51b908b..a3da9d1 100755 --- a/src/Board.js +++ b/src/Board.js @@ -609,7 +609,7 @@ class Board extends React.Component { /* Scale mouse.x and mouse.y relative to board */ this.mouse.x = (x - rect.left) / - (this.minSize / hexagonRatio) - 0.5 - tileHeight * 0.5, + (this.minSize / hexagonRatio) - 0.5 - tileHeight * 0.5; this.mouse.y = (y - rect.top) / (this.minSize / hexagonRatio) - 0.5 - tileHeight * 0.5; @@ -652,7 +652,7 @@ class Board extends React.Component { this.closest.tile = closest.tile; } - this.closest.info.distance = closest.distance, + this.closest.info.distance = closest.distance; this.closest.info.angle = closest.angle; } diff --git a/src/history.js b/src/history.js index 5a67c01..75bbf83 100755 --- a/src/history.js +++ b/src/history.js @@ -10,7 +10,7 @@ history.push = (path) => { }; */ -export default history = createBrowserHistory({ +export default createBrowserHistory({ basename: process.env.PUBLIC_URL });