doc.silverstripe.org/gatsby-browser.js
2019-11-15 11:40:23 +13:00

15 lines
516 B
JavaScript

require("prismjs/themes/prism-okaidia.css");
require("./src/theme/assets/scss/theme.scss");
require('./src/theme/assets/fontawesome/css/all.css');
require('./src/theme/assets/search/algolia.css');
const smoothScroll = require('smooth-scroll');
const Layout = require('./src/components/Layout').default;
const React = require('react');
if (typeof window !== "undefined") {
smoothScroll('a[href*="#"]')
}
exports.wrapPageElement = ({ element, props }) => {
return <Layout {...props}>{element}</Layout>
};