fix: Remove console.log calls from site (#550)

This commit is contained in:
Folkert de Vries
2022-04-02 21:31:31 +02:00
committed by GitHub
parent 2d35cd8997
commit a92cba8dc5
4 changed files with 0 additions and 11 deletions
-4
View File
@@ -2,13 +2,9 @@ import { Box, Text, Link, BoxProps } from '@chakra-ui/react';
import docsMenuTree from '../lib/docsMenuTree';
import NextLink from 'next/link';
import { useRouter } from 'next/router';
import { useEffect } from 'react';
const DocsMenu = (props: BoxProps) => {
const router = useRouter();
useEffect(() => {
console.log(router.asPath);
}, [router]);
const linkIsActive = (currentPath, href) => currentPath === `/docs/${href}`;
return (
<Box {...props}>
-1
View File
@@ -7,7 +7,6 @@ const HeadingTreeMenu = () => {
() =>
headings.map(heading => {
const headingElement = document.getElementById(heading.anchor);
console.log(headingElement);
return {
element: headingElement,
@@ -27,11 +27,6 @@ const IconDetailOverlay = ({ open = true, close, icon }) => {
close();
};
useEffect(() => {
console.log(icon);
}, [icon])
useEffect(() => {
if(open) {
onOpen()
-1
View File
@@ -18,7 +18,6 @@ const IconPage = ({ icon, data }) => {
search: router.query.search,
};
}
console.log('CLOSE');
router.push(
{