From 17c699de710f62bbb00bb2492000831a506365a9 Mon Sep 17 00:00:00 2001 From: Agrim Jain <157685219+agrim-deriv@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:39:02 +0400 Subject: [PATCH] Agrim/Pr 4228 eu business partners (#7864) * fix: tnc * fix: tnc --------- Co-authored-by: Agrim Jain --- crowdin/messages.json | 1 + .../terms-and-conditions/_business-grid.tsx | 30 +++++++++---------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/crowdin/messages.json b/crowdin/messages.json index bc4fcd10ba7..f049ee16e92 100644 --- a/crowdin/messages.json +++ b/crowdin/messages.json @@ -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", diff --git a/themes/gatsby-theme-deriv/src/pages/terms-and-conditions/_business-grid.tsx b/themes/gatsby-theme-deriv/src/pages/terms-and-conditions/_business-grid.tsx index e3e278ff0c0..3703e2e2093 100644 --- a/themes/gatsby-theme-deriv/src/pages/terms-and-conditions/_business-grid.tsx +++ b/themes/gatsby-theme-deriv/src/pages/terms-and-conditions/_business-grid.tsx @@ -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) => ( @@ -43,13 +41,11 @@ const Col = ({ Icon, content, link_title, title, url }: ColProps) => ( ) - 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 ( { /> ) } - 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; @@ -87,7 +88,6 @@ const BusinessGrid = () => { ? '/tnc/business-partners-bug-bounty.pdf' : '/tnc/business-partners-bug-bounty-eu.pdf'; } - return ( { url={general_terms_url_region} link_title="_t_General terms of use_t_" /> - + {region === "row" && (