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 }) => {
let [maximumBooksToShow, setMaximumBooksToShow] = useState(12)
console.log({data})
useEffect(() => {
window.document.onscroll = () =>
myFunction(setMaximumBooksToShow, maximumBooksToShow)

View File

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