update gatsby settings

This commit is contained in:
Valeriy
2018-09-12 02:14:13 +03:00
committed by Mrugesh Mohapatra
parent 8bfac64d4b
commit a99325e902
6 changed files with 67 additions and 74 deletions

View File

@@ -6,7 +6,7 @@ import headComponents from './src/head';
import { createStore } from './src/redux/store';
exports.replaceRenderer = ({
export const replaceRenderer = ({
history,
bodyComponent,
replaceBodyHTMLString
@@ -19,7 +19,7 @@ exports.replaceRenderer = ({
replaceBodyHTMLString(renderToString(<ConnectedBody />));
};
exports.onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => {
export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => {
setHeadComponents([...headComponents]);
setPostBodyComponents([
<script