Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Fasih/: fixing brave issue by removing CFD banner (#5763)
Browse files Browse the repository at this point in the history
* fix: fixing brave issue by removing CFD banner

* fix: fixing by removing cookie banner

* fix: udpated delay issue

* fix: removed pMinDelay

* fix: added react lazy and suspense

* fix: added min p

* fix: removed unsed code

---------

Co-authored-by: Fasih Ali <[email protected]>
  • Loading branch information
fasihali-deriv and Fasih Ali authored Oct 16, 2023
1 parent 8575421 commit 457bdb4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/features/components/molecules/layout-overlay/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import React, { Suspense, lazy } from 'react'
import pMinDelay from 'p-min-delay'
import loadable from '@loadable/component'
import { overlay_container } from './layout-overlay.module.scss'
Expand All @@ -9,7 +9,7 @@ import { getLocationPathname, getLanguage } from 'common/utility'

const LiveChatButton = loadable(() => pMinDelay(import('./live-chat-button'), 5000))
const WhatsappButton = loadable(() => pMinDelay(import('./whats-app-button'), 5000))
const CookieBanner = loadable(() => pMinDelay(import('./cookie-banner'), 5000))
const CookieBanner = lazy(() => pMinDelay(import('./cookie-banner'), 5000))

const LayoutOverlay = () => {
const is_rtl = useIsRtl()
Expand Down Expand Up @@ -37,7 +37,9 @@ const LayoutOverlay = () => {
align="end"
>
<Flex.Box justify={is_rtl ? 'end' : 'start'} basis="6-12" grow={'1'}>
<CookieBanner />
<Suspense fallback={<></>}>
<CookieBanner />
</Suspense>
</Flex.Box>
<Flex.Box direction="col">
<LiveChatButton />
Expand Down

1 comment on commit 457bdb4

@vercel
Copy link

@vercel vercel bot commented on 457bdb4 Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-com – ./

deriv-com.binary.sx
deriv-com-git-master.binary.sx

Please sign in to comment.