fix: Remove console.log calls from site (#550)
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -18,7 +18,6 @@ const IconPage = ({ icon, data }) => {
|
||||
search: router.query.search,
|
||||
};
|
||||
}
|
||||
console.log('CLOSE');
|
||||
|
||||
router.push(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user