diff --git a/client/README.md b/client/README.md index 6adb30e94..e650d6fd3 100644 --- a/client/README.md +++ b/client/README.md @@ -36,9 +36,6 @@ Other configuration variables are as follows: # Stop react from launching a browser when you run pnpm start. BROWSER="none" -# Where IMGScores should be generated from. -REACT_APP_IMGSCORE_URL="" - # KAI API Client IDs. REACT_APP_EAG_CLIENT_ID="" REACT_APP_MIN_CLIENT_ID="" diff --git a/client/example/.env b/client/example/.env index 4b1bb6f36..06868ee15 100644 --- a/client/example/.env +++ b/client/example/.env @@ -3,7 +3,6 @@ REACT_APP_TCHIC_MODE="omni" REACT_APP_SERVER_URL="https://127.0.0.1:8080" REACT_APP_CDN_URL="https://127.0.0.1:8080/cdn" REACT_APP_GIT_REPO="GitHub:TNG-dev/Tachi" -REACT_APP_IMGSCORE_URL="" REACT_APP_EAG_CLIENT_ID="" REACT_APP_MIN_CLIENT_ID="" REACT_APP_FLO_CLIENT_ID="" diff --git a/client/src/components/tables/dropdowns/components/ImgScoreButton.tsx b/client/src/components/tables/dropdowns/components/ImgScoreButton.tsx deleted file mode 100644 index 9c932a6e6..000000000 --- a/client/src/components/tables/dropdowns/components/ImgScoreButton.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import QuickTooltip from "components/layout/misc/QuickTooltip"; -import ExternalLink from "components/util/ExternalLink"; -import Icon from "components/util/Icon"; -import React from "react"; -import { Game, ScoreDocument } from "tachi-common"; - -const SUPPORTED_IMG_SCORES: Game[] = ["usc"]; - -export default function ImgScoreButton({ score }: { score: ScoreDocument }) { - if (!SUPPORTED_IMG_SCORES.includes(score.game)) { - return <>; - } - - return ( - - - - - - ); -} diff --git a/client/src/components/tables/dropdowns/components/ScoreEditButtons.tsx b/client/src/components/tables/dropdowns/components/ScoreEditButtons.tsx index 991c1cc38..4f1934c65 100644 --- a/client/src/components/tables/dropdowns/components/ScoreEditButtons.tsx +++ b/client/src/components/tables/dropdowns/components/ScoreEditButtons.tsx @@ -3,12 +3,9 @@ import QuickTooltip from "components/layout/misc/QuickTooltip"; import Icon from "components/util/Icon"; import { UserContext } from "context/UserContext"; import React, { useContext, useEffect, useRef, useState } from "react"; -import { Game, ScoreDocument } from "tachi-common"; -import { Button, Modal, Form } from "react-bootstrap"; +import { Button, Form, Modal } from "react-bootstrap"; +import { ScoreDocument } from "tachi-common"; import { SetState } from "types/react"; -import LinkButton from "components/util/LinkButton"; -import ExternalLink from "components/util/ExternalLink"; -import ImgScoreButton from "./ImgScoreButton"; export default function ScoreEditButtons({ score, @@ -95,8 +92,6 @@ export default function ScoreEditButtons({ )} )} - -