From 78b6fd1adfebc5d2c9d2ccf780ad206ed9dd5df1 Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Thu, 17 Oct 2019 15:51:01 +0300 Subject: [PATCH] fix: load stripe conditionally (#37365) --- client/gatsby-ssr.js | 6 ---- client/package.json | 1 + .../Donation/components/DonateModal.js | 36 ++++++++++++------- client/src/pages/donate.js | 10 +++--- client/src/utils/scriptLoaders.js | 19 ++++++++++ package.json | 1 + 6 files changed, 48 insertions(+), 25 deletions(-) create mode 100644 client/src/utils/scriptLoaders.js diff --git a/client/gatsby-ssr.js b/client/gatsby-ssr.js index cfdb4f187a..9306aa55aa 100644 --- a/client/gatsby-ssr.js +++ b/client/gatsby-ssr.js @@ -38,12 +38,6 @@ export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => { ` }} key='gtag-dataLayer' - />, -