remove console.logs
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user