feat: first commit
This commit is contained in:
commit
8b0c05008e
79 changed files with 30897 additions and 0 deletions
17
gatsby-ssr.js
Normal file
17
gatsby-ssr.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
import React from "react";
|
||||
import { ThemeContextProvider, PreSetTheme } from "./src/context";
|
||||
import { Provider } from "react-redux";
|
||||
import store from "./src/store/store";
|
||||
import "react-vis/dist/style.css";
|
||||
|
||||
export const wrapRootElement = ({ element }) => {
|
||||
return (
|
||||
<ThemeContextProvider>
|
||||
<Provider store={store}>{element}</Provider>
|
||||
</ThemeContextProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export const onRenderBody = ({ setPreBodyComponents }) => {
|
||||
setPreBodyComponents([<PreSetTheme key="prerender-theme" />]);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue