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