mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-23 01:32:04 -07:00
fix(build): Fixed build error introduced in last commit
This commit is contained in:
@@ -10,12 +10,14 @@ import PropTypes from "prop-types"
|
||||
//import { useStaticQuery, graphql } from "gatsby"
|
||||
|
||||
//import Header from "./header"
|
||||
|
||||
import "./app-colors.css"
|
||||
import "./layout.css"
|
||||
import Footer from './footer'
|
||||
let Footer = typeof window !== `undefined` ? require("./footer").default : null
|
||||
//import Footer from "./footer"
|
||||
|
||||
const Layout = ({ children }) => {
|
||||
/* const data = useStaticQuery(graphql`
|
||||
/* const data = useStaticQuery(graphql`
|
||||
query SiteTitleQuery {
|
||||
site {
|
||||
siteMetadata {
|
||||
@@ -27,13 +29,11 @@ const Layout = ({ children }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
<main>{children}</main>
|
||||
<Footer></Footer>
|
||||
<main>{children}</main>
|
||||
{Footer && <Footer />}{" "}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Layout.propTypes = {
|
||||
children: PropTypes.node.isRequired,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user