remove console.logs

This commit is contained in:
Gal Elmalah
2020-10-11 11:51:06 +03:00
committed by Vishnu Ks
parent c94bd9f3b3
commit e50712e5bc
2 changed files with 14 additions and 16 deletions

View File

@@ -19,7 +19,6 @@ function myFunction(setMaximumBooksToShow, maximumBooksToShow) {
export default ({ data }) => { export default ({ data }) => {
let [maximumBooksToShow, setMaximumBooksToShow] = useState(12) let [maximumBooksToShow, setMaximumBooksToShow] = useState(12)
console.log({data})
useEffect(() => { useEffect(() => {
window.document.onscroll = () => window.document.onscroll = () =>
myFunction(setMaximumBooksToShow, maximumBooksToShow) myFunction(setMaximumBooksToShow, maximumBooksToShow)

View File

@@ -1,17 +1,16 @@
import React, { useState, useEffect } from "react" import React, { useState, useEffect } from 'react';
import { graphql } from "gatsby" import { graphql } from 'gatsby';
import Layout from "../components/layout" import { Container, Row, Col } from 'react-bootstrap';
import SEO from "../components/seo" import Layout from '../components/layout';
import SideBar from "../components/sidebar" import SEO from '../components/seo';
import CategoryDescription from "../components/categorydescription" import SideBar from '../components/sidebar';
import { Container, Row, Col } from "react-bootstrap" import CategoryDescription from '../components/categorydescription';
import BookFeed from "../components/feed" import BookFeed from '../components/feed';
const basicTemplate = props => { const basicTemplate = (props) => {
const { pageContext } = props const { pageContext } = props;
const { categoryName, data } = pageContext const { categoryName, data } = pageContext;
console.log({data, categoryName})
return ( return (
<Layout> <Layout>
<SEO title="Home" /> <SEO title="Home" />
@@ -27,6 +26,6 @@ const basicTemplate = props => {
</Row> </Row>
</Container> </Container>
</Layout> </Layout>
) );
} };
export default basicTemplate export default basicTemplate;