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

Commit

Permalink
fix: footer description for diel (#6329)
Browse files Browse the repository at this point in the history
* fix: footer description for diel

Signed-off-by: Nuzhy-Deriv <[email protected]>

* fix: translation for description diel

Signed-off-by: Nuzhy-Deriv <[email protected]>

* auto-pull-translation

Signed-off-by: Nuzhy-Deriv <[email protected]>

* translation: 📚 sync translations from crowdin feature branch

Signed-off-by: Nuzhy-Deriv <[email protected]>

* auto-pull-translation

Signed-off-by: Nuzhy-Deriv <[email protected]>

* auto-pull-translation

Signed-off-by: Nuzhy-Deriv <[email protected]>

* auto-pull-translation

Signed-off-by: Nuzhy-Deriv <[email protected]>

* translation: 📚 sync translations from crowdin feature branch

Signed-off-by: Nuzhy-Deriv <[email protected]>

* empty: 🚀 to redeploy and trigger build

Signed-off-by: Nuzhy-Deriv <[email protected]>

---------

Signed-off-by: Nuzhy-Deriv <[email protected]>
Co-authored-by: DerivFE <[email protected]>
  • Loading branch information
Nuzhy-Deriv and DerivFE authored Dec 26, 2023
1 parent 7ac6461 commit a2cbfed
Show file tree
Hide file tree
Showing 21 changed files with 4,752 additions and 4,670 deletions.
1 change: 1 addition & 0 deletions crowdin/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2128,6 +2128,7 @@
"1976014299": "For <0>oil</0>, a deal for 10 lots for a price of USD 96 will pay out USD 0.05 in commission based on the following formula:",
"1976889936": "Yes, you can select the duration of your Touch/No Touch contract. You can choose to open a contract for as short as 5 ticks to as long as 365 days (depending on the trading asset selected).",
"1978148367": "Open a real account, make a deposit, and start trading for real. Trade forex, indices, commodities, and more.",
"1979304570": "Deriv Investments (Europe) Limited is licensed and regulated by the Malta Financial Services Authority under the Investment Services Act (<0>licence</0>). Deriv (FX) Ltd is licensed by the Labuan Financial Services Authority (<1>licence</1>). Deriv (BVI) Ltd is licensed by the British Virgin Islands Financial Services Commission (<2>licence</2>). Deriv (V) Ltd is licensed by the Vanuatu Financial Services Commission (<3>licence</3>). Deriv (SVG) LLC has a registered office at First Floor, SVG Teachers Credit Union Uptown Building, Corner of James and Middle Street, Kingstown P.O., St Vincent and the Grenadines. Deriv.com Limited is the holding company for the above subsidiaries with the registration number 71479 and the registered address is located at 2nd Floor, 1 Cornet Street, St Peter Port, Guernsey, GY1 1BZ.",
"1979503547": "Trading terms",
"1980724783": "The point value is derived from the current digits of the asset. In this example, the digit is 5, so the point value is 0.00001.",
"1981714597": "The world’s most popular digital currencies.",
Expand Down
57 changes: 57 additions & 0 deletions src/features/components/templates/footer/description.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,60 @@ export const DescriptionContentEU = () => {
</>
)
}

export const DescriptionContentCPA = () => {
return (
<>
<Text size="sm">
<Localize
translate_text="_t_Deriv Investments (Europe) Limited is licensed and regulated by the Malta Financial Services Authority under the Investment Services Act (<0>licence</0>). Deriv (FX) Ltd is licensed by the Labuan Financial Services Authority (<1>licence</1>). Deriv (BVI) Ltd is licensed by the British Virgin Islands Financial Services Commission (<2>licence</2>). Deriv (V) Ltd is licensed by the Vanuatu Financial Services Commission (<3>licence</3>). Deriv (SVG) LLC has a registered office at First Floor, SVG Teachers Credit Union Uptown Building, Corner of James and Middle Street, Kingstown P.O., St Vincent and the Grenadines. Deriv.com Limited is the holding company for the above subsidiaries with the registration number 71479 and the registered address is located at 2nd Floor, 1 Cornet Street, St Peter Port, Guernsey, GY1 1BZ._t_"
components={[
<a
className={clsx(sharedClasses)}
href="/regulatory/Deriv_Investments_(Europe)_Limited.pdf"
key={0}
target="_blank"
/>,
<a
className={clsx(sharedClasses)}
key={1}
target="_blank"
href="/regulatory/Deriv_(FX)_Ltd.pdf"
/>,
<a
className={clsx(sharedClasses)}
key={2}
target="_blank"
href="/regulatory/Deriv_(BVI)_Ltd.pdf"
/>,
<a
className={clsx(sharedClasses)}
key={3}
target="_blank"
href="/regulatory/Deriv_(V)_Ltd.pdf"
/>,
]}
/>
</Text>
<Text size="sm">
<Localize
translate_text="_t_Please read our <0>Terms and conditions</0>, <1>Risk disclosure</1>, and <2>Secure and responsible trading</2> to fully understand the risks involved before using our services. The information on this website does not constitute investment advice._t_"
components={[
<a
className={clsx(sharedClasses)}
href="/terms-and-conditions/#clients"
key={0}
/>,
<a
className={clsx(sharedClasses)}
href="/tnc/eu/risk-disclosure.pdf"
key={1}
target="_blank"
/>,
<a className={clsx(sharedClasses)} href="/responsible/" key={2} />,
]}
/>
</Text>
</>
)
}
16 changes: 11 additions & 5 deletions src/features/components/templates/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import {
warnText,
} from './data'
import { DerivGoBannerAndAwards } from './banner-and-awards'
import { DescriptionContent, DescriptionContentEU } from './description'
import { DescriptionContent, DescriptionContentCPA, DescriptionContentEU } from './description'
import useRegion from 'components/hooks/use-region'
import { getLocationPathname } from 'common/utility'

export const MainFooter = () => {
const [is_career, setIsCareer] = useState(false)
const { is_eu } = useRegion()
const { is_eu, is_cpa_plan } = useRegion()

useEffect(() => {
const current_path = getLocationPathname()
Expand All @@ -33,11 +33,17 @@ export const MainFooter = () => {

return (
<Footer.FooterBlock
warningText={!is_eu ? warnText : null}
warningText={!is_eu && !is_cpa_plan ? warnText : null}
socialButtons={socialButtons}
bannerAndAwards={DerivGoBannerAndAwards}
descriptionContent={is_eu ? DescriptionContentEU : DescriptionContent}
className={qtMerge(is_eu && 'mb-[120px] lg:mb-[80px]')}
descriptionContent={
is_eu
? DescriptionContentEU
: is_cpa_plan
? DescriptionContentCPA
: DescriptionContent
}
className={qtMerge((is_eu || is_cpa_plan) && 'mb-[120px] lg:mb-[80px]')}
>
<Footer.MainNavContent items={is_eu ? EuFooterNavData : RowFooterNavData} cols="six" />
</Footer.FooterBlock>
Expand Down
Loading

1 comment on commit a2cbfed

@vercel
Copy link

@vercel vercel bot commented on a2cbfed Dec 26, 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-git-master.binary.sx
deriv-com.binary.sx

Please sign in to comment.