Skip to content

Commit

Permalink
Konstantinos / Delay fix (binary-com#5331)
Browse files Browse the repository at this point in the history
* fix: floating disclaimer EU update

* fix: revert

* fix: 404 update

* fix: revert

* fix: delay remove for cfdwarningbanner

---------

Co-authored-by: Konstantinos-Gk <[email protected]>
  • Loading branch information
konstantinosG-deriv and Konstantinos-Gk authored Aug 9, 2023
1 parent df23d73 commit 65d5ad9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
9 changes: 6 additions & 3 deletions src/features/components/molecules/layout-overlay/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import React from 'react'
import pMinDelay from 'p-min-delay'
import loadable from '@loadable/component'
import { overlay_container } from './layout-overlay.module.scss'
import LiveChatButton from './live-chat-button'
import WhatsappButton from './whats-app-button'
import CookieBanner from './cookie-banner'
import CfdWarningBanner from './cfd-warning-banner'
import Flex from 'features/components/atoms/flex-box'
import { useIsRtl } from 'components/hooks/use-isrtl'
import { getLocationPathname } 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 LayoutOverlay = () => {
const is_rtl = useIsRtl()

Expand Down
7 changes: 1 addition & 6 deletions src/features/components/templates/layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import React, { ReactNode } from 'react'
import loadable from '@loadable/component'
import pMinDelay from 'p-min-delay'
import { usePlatformQueryParam } from 'components/hooks/use-platform-query-param'
import PpcProvider from 'features/contexts/ppc-campaign/ppc.provider'
import { getLanguage, isBrowser } from 'common/utility'
import LayoutOverlay from 'features/components/molecules/layout-overlay'
import BrowserUpdateAlert from 'features/components/molecules/browser-update-alert'
import apiManager from 'common/websocket'
import 'swiper/swiper-bundle.min.css'
import 'features/styles/app.scss'

const LayoutOverlay = loadable(() =>
pMinDelay(import('features/components/molecules/layout-overlay'), 5000),
)
interface LayoutProps {
is_ppc?: boolean
is_ppc_redirect?: boolean
Expand Down
2 changes: 1 addition & 1 deletion src/translations/ach.json
Original file line number Diff line number Diff line change
Expand Up @@ -3901,4 +3901,4 @@
"-1773685845": "crwdns459760:0crwdne459760:0",
"-661813412": "crwdns459762:0crwdne459762:0",
"-1520902282": "crwdns459764:0crwdne459764:0"
}
}

0 comments on commit 65d5ad9

Please sign in to comment.