From eb168dcdbf92313ce602137783d91ba3dda05031 Mon Sep 17 00:00:00 2001 From: Eugene Fox Date: Tue, 11 Nov 2025 11:31:51 +0000 Subject: [PATCH] fix: eslint errors --- src/components/CtaPopover.tsx | 1 + src/pages/StartPage.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/CtaPopover.tsx b/src/components/CtaPopover.tsx index affed32..d3114a5 100644 --- a/src/components/CtaPopover.tsx +++ b/src/components/CtaPopover.tsx @@ -11,6 +11,7 @@ export default function CtaPopover(): ReactElement useEffect(() => { // We have to open it manually, otherwise it struggles to find the target anchor + // eslint-disable-next-line react-hooks/set-state-in-effect setCtaOpen(true); }, []); diff --git a/src/pages/StartPage.tsx b/src/pages/StartPage.tsx index 3c5327a..49e6603 100644 --- a/src/pages/StartPage.tsx +++ b/src/pages/StartPage.tsx @@ -11,6 +11,10 @@ import AboutDialog from "../dialogs/AboutDialog"; import DownloadDialog from "../dialogs/DownloadDialog"; import QnaDialog from "../dialogs/QnaDialog"; +const AboutIcon: ic.FluentIcon = ic.bundleIcon(ic.InfoFilled, ic.InfoRegular); +const QnaIcon: ic.FluentIcon = ic.bundleIcon(ic.LockClosedFilled, ic.LockClosedRegular); +// const DevIcon: ic.FluentIcon = ic.bundleIcon(ic.CodeFilled, ic.CodeRegular); + export default function StartPage(): ReactElement { const navigate = useNavigate(); @@ -21,10 +25,6 @@ export default function StartPage(): ReactElement const cls = useStyles(); - const AboutIcon: ic.FluentIcon = ic.bundleIcon(ic.InfoFilled, ic.InfoRegular); - const QnaIcon: ic.FluentIcon = ic.bundleIcon(ic.LockClosedFilled, ic.LockClosedRegular); - // const DevIcon: ic.FluentIcon = ic.bundleIcon(ic.CodeFilled, ic.CodeRegular); - return (
{ status === "failed" &&