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') {