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

Agrim/Pr 2903 minified react error #7846

Merged
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
import { DerivGoBanner } from './deriv-go-banner'
import { IIPAward } from './iip-award'
import { DescriptionContent } from './description'
import { usePageLoaded } from 'components/hooks/use-page-loaded'
import useThirdPartyFlags from 'components/hooks/use-third-party-flags'
import { getLocationPathname } from 'common/utility'
import useRegion from 'components/hooks/use-region'
Expand Down Expand Up @@ -76,13 +77,16 @@ export const MainFooter = () => {
cpa_social_media_icons,
])

const[is_mounted] = usePageLoaded();
if(!is_mounted) return null

return (
<Footer.FooterBlock
warningText={warn_text && (
<Text className={`text-solid-slate-600 ${region !== 'eu' && !is_cpa_plan ? 'additional-warning-classname' : ''}`} size="sm">
<Localize
translate_text={warn_text}
values={{ loss_percent: 'some_value' }} // Replace 'some_value' with the appropriate value
values={{ loss_percent: 'some_value' }}
/>
</Text>
)}
Expand Down
Loading