From e3c01c5a1f0575ee6e7515e7b79a08019bf9013d Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 4 May 2021 13:11:47 +0200 Subject: [PATCH] Fix: Lint issue --- src/templates/MarkdownList.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/templates/MarkdownList.jsx b/src/templates/MarkdownList.jsx index dce7729a..02f52f04 100644 --- a/src/templates/MarkdownList.jsx +++ b/src/templates/MarkdownList.jsx @@ -22,10 +22,10 @@ export default function MarkdownList({ pageContext }) { modules[key].push(node) }) - const module_keys = Object.keys(modules).sort() + const moduleKeys = Object.keys(modules).sort() const [selectedSubSection, setSelectedSubSection] = useState(0) - const [elem, setElem] = useState(modules[module_keys[selectedSubSection]][0]) + const [elem, setElem] = useState(modules[moduleKeys[selectedSubSection]][0]) const changePage = (subSectionIndex, node) => { setElem(node) @@ -34,7 +34,7 @@ export default function MarkdownList({ pageContext }) { const changeSubsection = (index) => { setSelectedSubSection(index) - setElem(modules[module_keys[index]][0]) + setElem(modules[moduleKeys[index]][0]) } return ( @@ -49,7 +49,7 @@ export default function MarkdownList({ pageContext }) {