From 2fe749a036c1a381f3d21a61f8c9050661142b71 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 29 May 2023 15:02:56 -0700 Subject: [PATCH] fix frontend warnings --- front/src/routes/bots.jsx | 4 ++-- front/src/routes/man_pages.jsx | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/front/src/routes/bots.jsx b/front/src/routes/bots.jsx index 2976e21..c2f1565 100644 --- a/front/src/routes/bots.jsx +++ b/front/src/routes/bots.jsx @@ -1,6 +1,6 @@ import Modal from "react-modal"; import { useAuthContext } from "../context/auth_context"; -import { useEffect, useState, useCallback } from "react"; +import { useEffect, useState } from "react"; Modal.setAppElement("#root"); @@ -147,7 +147,7 @@ const BotButton = ({ onSave, givenBot }) => { }; export const BotCard = ({ botStruct, onSave }) => { - const { name, token } = botStruct; + const { name } = botStruct; return (

{name}

diff --git a/front/src/routes/man_pages.jsx b/front/src/routes/man_pages.jsx index ea03c2a..f904394 100644 --- a/front/src/routes/man_pages.jsx +++ b/front/src/routes/man_pages.jsx @@ -74,7 +74,11 @@ export const ManPages = () => {
  • In the "Previous Games" viewer, use "m" to show the game's move history in UCI notation (which you may convert to PGN{" "} - + here ).