-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from CivicActions/gatsby-5-upgrade
Upgrade Application to Gatsby 5
- Loading branch information
Showing
32 changed files
with
7,259 additions
and
7,785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.cache | ||
package.json | ||
package-lock.json | ||
public |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
/** | ||
* Implement Gatsby's Browser APIs in this file. | ||
* | ||
* See: https://www.gatsbyjs.com/docs/reference/config-files/gatsby-browser/ | ||
*/ | ||
import React from 'react' | ||
import { HubspotProvider } from '@aaronhayes/react-use-hubspot-form' | ||
|
||
export const onClientEntry = async () => { | ||
if (typeof IntersectionObserver === "undefined") { | ||
await import("intersection-observer"); | ||
await import("intersection-observer") | ||
} | ||
}; | ||
} | ||
|
||
// Gatsby's method of wrapping the root react element (app.js) | ||
// HubspotProvider context is required for @aaronhayes/react-use-hubspot-form to work on the /contact page | ||
export const wrapRootElement = ({ element }) => ( | ||
<HubspotProvider> | ||
{element} | ||
</HubspotProvider> | ||
) |
Oops, something went wrong.