From 7c6f41d052ebd789f3378de9e84d623e0948884a Mon Sep 17 00:00:00 2001 From: fasihali-deriv <121229483+fasihali-deriv@users.noreply.github.com> Date: Thu, 29 Feb 2024 19:26:04 +0800 Subject: [PATCH] Fasih/DPROD-3590/integrate firebase feature flag for third party items (#7149) * feat: implement json which contain items name * feat: adding flag on third party packages * feat: implemented flag on trade platfrom apps * feat: removed unsued code * feat: made some items value false * feat: enabled all items * feat: add condition for derivgo footer badge * feat: updated keys * feat: interated api and hook * feat: updated hook with importing function * feat: updated hook and filtered footer icon data * feat: remvoed hotjar and gtm from flags * feat: removed unused code * feat: made every item true * feat: updated other layout files * feat: updated the condition --------- Co-authored-by: fasihali-deriv Co-authored-by: Muhammad Fasih Ali Naqvi --- gatsby-ssr.js | 12 +- .../custom/_multi-width-column-download.tsx | 93 ++++++------ .../hooks/use-third-party-flags.tsx | 53 +++++++ src/components/layout/layout-overlay.tsx | 7 +- .../molecules/layout-overlay/index.tsx | 7 +- .../components/quill/layout-overlay/index.tsx | 7 +- .../templates/footer/deriv-go-banner.tsx | 43 +++--- .../components/templates/footer/download.tsx | 50 ++++--- .../components/templates/footer/index.tsx | 27 +++- .../pages/deriv-ctrader/get-trading/index.tsx | 19 ++- src/features/pages/home/index.tsx | 13 +- .../data-provider/index.tsx | 2 +- .../form-container/form-social-buttons.tsx | 140 ++++++++++-------- src/pages/contact_us/index.tsx | 4 +- src/pages/deriv-go/_footer-banner.tsx | 30 +++- src/pages/deriv-go/index.tsx | 4 +- src/pages/derivx/_get-derivx.tsx | 29 +++- src/pages/dmt5/_download-app.tsx | 69 +++++++-- .../components/_didnt-find-answer.tsx | 13 +- .../components/_search-section.tsx | 4 +- static/appConfig.js | 57 +++++++ 21 files changed, 488 insertions(+), 195 deletions(-) create mode 100644 src/components/hooks/use-third-party-flags.tsx create mode 100644 static/appConfig.js diff --git a/gatsby-ssr.js b/gatsby-ssr.js index 31bc3864b5e..d8f34f3a386 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -38,25 +38,25 @@ export const onRenderBody = ({ setHeadComponents }) => { />, // GTM setup - gtmTrackingId && ( + (gtmTrackingId && ( - ), - gtmTrackingId && ( + )), + (gtmTrackingId && (