From 925e879cc5583f517c882eb2464de01a9faf2101 Mon Sep 17 00:00:00 2001 From: Renkin <906155099@qq.com> Date: Wed, 8 Nov 2023 10:44:01 +0800 Subject: [PATCH] fix: fixed eslint warning --- src/App.js | 2 +- src/solutionTemplate/index.jsx | 2 +- src/submission/hideFailCases.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 31972e7..11c2052 100644 --- a/src/App.js +++ b/src/App.js @@ -1,4 +1,4 @@ -import React, { useState, Suspense, useEffect } from "react"; +import React, { useState, Suspense } from "react"; import { Button, Table, Empty, Tabs, Image } from "antd"; import "highlight.js/styles/github.css"; diff --git a/src/solutionTemplate/index.jsx b/src/solutionTemplate/index.jsx index 231cc36..0f5a8dd 100644 --- a/src/solutionTemplate/index.jsx +++ b/src/solutionTemplate/index.jsx @@ -123,7 +123,7 @@ ${desc} ${displayLanguage(language)} Code: \`\`\`${ - language.toLocaleLowerCase() == "python3" + language.toLocaleLowerCase() === "python3" ? "python" : language.toLocaleLowerCase() } diff --git a/src/submission/hideFailCases.js b/src/submission/hideFailCases.js index c5a565b..27d307a 100644 --- a/src/submission/hideFailCases.js +++ b/src/submission/hideFailCases.js @@ -18,7 +18,7 @@ function hideFailCases() { expect.style.display = "none" - if (!document.querySelector('#leetcode-cheat-show-fail-cases')) { + if (!document.querySelector("#leetcode-cheat-show-fail-cases")) { const showFailCases = document.createElement("div"); showFailCases.id = "leetcode-cheat-show-fail-cases"; const showFailCasesTip = document.createElement("span")