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

Commit

Permalink
Agrim/Pr 4228 eu business partners (#7864)
Browse files Browse the repository at this point in the history
* fix: tnc

* fix: tnc

---------

Co-authored-by: Agrim Jain <[email protected]>
  • Loading branch information
agrim-deriv and Agrim Jain authored Aug 14, 2024
1 parent f0ac7f4 commit 17c699d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions crowdin/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1587,6 +1587,7 @@
"1548745350": "Deriv Prime is the institutional arm of Deriv Group, and staying true to its guiding principles, effectively democratises liquidity provision to financial institutions. No matter if you are large, small, or have just started, Deriv Prime will provide top-of-book liquidity solutions with very fast execution at unmatched fair pricing and conditions.",
"1549352292": "With turbo options, you need to define a barrier before opening a contract. If the spot price touches or breaches this barrier at any time throughout the contract duration, your contract will expire worthless. This means that you will not receive a payout and will lose your initial stake amount. To compensate for this risk, turbo options will have a higher payout per point and potential payout, depending on how far the selected barrier is from the opening spot price. Another difference to note is that trading turbo options carries more risk than trading vanilla options.",
"1549497379": "High leverage, tight forex spreads",
"1549777785": "Affiliates & introduction brokers (IBs)",
"1550413103": "checklist",
"1550574351": "Let’s say you want to keep two lots of EUR/USD with a point value of 0.00001 and swap rate of -0.12 open for one night.",
"1551172020": "AUD Basket",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ import BugBountyRow from 'images/svg/terms/bug-bounty-row.svg'
import IG from 'images/svg/terms/important-guidelines.svg'
import PDF from 'images/svg/regulatory/pdf-icon-black.svg'
import useBuildVariant from 'features/hooks/use-build-variant'

type ColProps = {
Icon: string
content: TString
title: TString
link_title: TString
title: TString | string
link_title: TString | string
url: string
}

const Col = ({ Icon, content, link_title, title, url }: ColProps) => (
<GridCol>
<IconWrapper>
Expand All @@ -43,13 +41,11 @@ const Col = ({ Icon, content, link_title, title, url }: ColProps) => (
</Cta>
</GridCol>
)

const PartnersGuidePdf = () => {
// const language = getLanguage()
// const supported_languages = ['fr', 'ru', 'es', 'vi', 'pt']
// const pdf_lang = supported_languages.includes(language) ? language : 'english'
const url = `/tnc/business-partners-guide-english.pdf`

return (
<Col
Icon={IG}
Expand All @@ -60,11 +56,16 @@ const PartnersGuidePdf = () => {
/>
)
}

const BusinessGrid = () => {

const { region } = useBuildVariant();
const language = getLanguage();
const title = region === "row"
? "_t_Affiliates & introduction brokers (IBs)_t_"
: "Affiliates";
const link_title = region === "row"
? "_t_Affiliates & introduction brokers (IBs)_t_"
: "Affiliates";

let general_terms_url_region, affiliate_brokers_url_region, api_user_url_region, bug_bounty_url_region;

Expand All @@ -87,7 +88,6 @@ const BusinessGrid = () => {
? '/tnc/business-partners-bug-bounty.pdf'
: '/tnc/business-partners-bug-bounty-eu.pdf';
}

return (
<StyledContainer>
<StyledGrid
Expand All @@ -105,13 +105,13 @@ const BusinessGrid = () => {
url={general_terms_url_region}
link_title="_t_General terms of use_t_"
/>
<Col
Icon={Partners}
title="_t_Affiliates & introducing brokers (IBs)_t_"
content="_t_Additional terms for our affiliates and introducing brokers_t_"
url={affiliate_brokers_url_region}
link_title="_t_Affiliates & introducing brokers (IBs)_t_"
/>
<Col
Icon={Partners}
title={region === "row" ? "_t_Affiliates & introducing brokers (IBs)_t_" : "_t_Affiliates_t_"}
content="_t_Additional terms for our affiliates and introducing brokers_t_"
url={affiliate_brokers_url_region}
link_title={link_title}
/>

<PartnersGuidePdf />
{region === "row" && (
Expand Down

0 comments on commit 17c699d

Please sign in to comment.