From 1e0c36e28467221944438d7c16b2197c5787b289 Mon Sep 17 00:00:00 2001 From: Akash Manna Date: Fri, 6 Mar 2026 20:11:21 +0530 Subject: [PATCH] Inconsistent useState Usage --- src/pages/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index f70aeb77..e4dabd2a 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -16,8 +16,8 @@ const IndexPage = (props) => { const isMobile = useMediaQuery(theme.breakpoints.down('sm')); const { data } = props; const contributors = data.allAsciidoc.edges; - const [thankYou, setThankYou] = React.useState([]); - const [darkmode, setDarkmode] = React.useState(null); + const [thankYou, setThankYou] = useState([]); + const [darkmode, setDarkmode] = useState(null); useEffect(() => { if (typeof window !== 'undefined') {