From 76509ea4873a51bc792b12fdd01788cc029804fe Mon Sep 17 00:00:00 2001 From: Triston Date: Sat, 17 Feb 2024 11:54:32 -0600 Subject: [PATCH] remove comments --- components/FolderTree.js | 13 ------------- components/Layout.js | 11 ++++------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/components/FolderTree.js b/components/FolderTree.js index 0ff0063..45d6f26 100644 --- a/components/FolderTree.js +++ b/components/FolderTree.js @@ -36,11 +36,6 @@ export default function FolderTree(props) { defaultExpandIcon={} onNodeSelect={(event, nodIds) => { const currentNode = binaryFind(props.flattenNodes, nodIds); - // const currentNode = props.flattenNodes.find((aNode) => { - // console.log(aNode.id); - // return aNode.id === nodIds; - // }); - console.log({ currentNode }); if (currentNode != null && currentNode.routePath != null) { router.push(currentNode.routePath); } @@ -60,16 +55,8 @@ function binaryFind(sourceList, valToFind) { while (rightIndex >= leftIndex) { middleIndex = leftIndex + Math.floor((rightIndex - leftIndex) / 2); const currentValue = sourceList[middleIndex]; - console.log(currentValue); - // If the element is present at the middle - // itself if (currentValue.id == valToFind) return currentValue; - - // If element is smaller than mid, then - // it can only be present in left subarray if (currentValue.id > valToFind) rightIndex = middleIndex - 1; - // Else the element can only be present - // in right subarray else leftIndex = middleIndex + 1; } diff --git a/components/Layout.js b/components/Layout.js index 04f519d..20e7482 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -1,11 +1,8 @@ -export const siteTitle = 'Digital Backroom - An Internet Archive' +export const siteTitle = "Digital Backroom - An Internet Archive"; export default function Layout({ children }) { return ( -
-
- {children} -
+
+
{children}
- ) + ); } -