This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-03-23 12:07:19 +00:00
|
|
|
/**
|
|
|
|
* Implement Gatsby's Browser APIs in this file.
|
|
|
|
*
|
|
|
|
* See: https://www.gatsbyjs.com/docs/browser-apis/
|
|
|
|
*/
|
|
|
|
|
|
|
|
import "normalize.css";
|
|
|
|
import "@fontsource/sora/300.css"; // light
|
|
|
|
import "@fontsource/sora/400.css"; // normal
|
|
|
|
import "@fontsource/sora/500.css"; // medium
|
|
|
|
import "@fontsource/sora/600.css"; // semibold
|
|
|
|
import "@fontsource/source-sans-pro/400.css"; // normal
|
2021-03-31 17:08:38 +00:00
|
|
|
import "@fontsource/source-sans-pro/600.css"; // semibold
|
2021-03-23 12:07:19 +00:00
|
|
|
import "./src/styles/global.css";
|
2021-04-01 12:46:00 +00:00
|
|
|
|
|
|
|
import * as React from "react";
|
|
|
|
import Layout from "./src/components/Layout";
|
|
|
|
|
|
|
|
export const wrapPageElement = ({ element, props }) => {
|
2022-05-16 10:59:11 +00:00
|
|
|
if (props.uri.startsWith("/errors")) return element;
|
2021-04-01 12:46:00 +00:00
|
|
|
// props provide same data to Layout as Page element will get
|
|
|
|
// including location, data, etc - you don't need to pass it
|
|
|
|
return <Layout {...props}>{element}</Layout>;
|
|
|
|
};
|