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

Agrim/MARK-1042/fix:adding new commission plans #7605

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
a50e61d
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 5, 2024
dc734e8
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 5, 2024
62ae536
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 15, 2024
5d79702
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 15, 2024
e8dab66
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 16, 2024
5918fd4
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 17, 2024
7ddb0c5
fix: adding new commission plans
Apr 17, 2024
b14ad9d
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 17, 2024
0e33c4e
fix: table issue
Apr 17, 2024
507ae78
fix: styling of table and cpa-eu fix
Apr 17, 2024
40b977d
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 18, 2024
cbbafd3
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 18, 2024
f72449b
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 18, 2024
46509c8
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 18, 2024
c7ac35a
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 19, 2024
1fc906a
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 22, 2024
9a01a9a
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 22, 2024
e81d677
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 22, 2024
8dd6aad
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 24, 2024
e21b299
Merge branch 'master' into translation-1042-adding-new-commission-plans
Apr 24, 2024
c70821c
fix: styling of table and cpa for row
Apr 24, 2024
bb61bd1
auto-pull-translation
Apr 24, 2024
89f0ca6
translation: 📚 sync translations from crowdin feature branch
DerivFE Apr 24, 2024
1645fd2
fix: translations
Apr 24, 2024
dbb4931
fix: styling
Apr 24, 2024
85b3f13
auto-pull-translation
Apr 25, 2024
efe1d72
auto-pull-translation
Apr 25, 2024
2652f4f
auto-pull-translation
Apr 25, 2024
3006ebf
auto-pull-translation
Apr 25, 2024
00b00fb
auto-pull-translation
Apr 25, 2024
a4720b8
auto-pull-translation
Apr 25, 2024
92af2f9
auto-pull-translation
Apr 25, 2024
d1c13d9
auto-pull-translation
Apr 25, 2024
e532d3d
auto-pull-translation
Apr 25, 2024
973329c
translation: 📚 sync translations from crowdin feature branch
DerivFE Apr 25, 2024
9bae087
fix: translations
Apr 25, 2024
6726235
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 30, 2024
d56486a
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 30, 2024
3a1bd42
Merge branch 'master' of https://github.com/binary-com/deriv-com
Apr 30, 2024
bf14262
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 1, 2024
0629804
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 1, 2024
82c5022
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 3, 2024
b353e43
fix: cpa turnover revenue share changes
May 3, 2024
960cc00
fix: styling
May 3, 2024
6f3af34
fix: changes on partners page
May 3, 2024
d048c51
auto-pull-translation
May 3, 2024
1fa053f
translation: 📚 sync translations from crowdin feature branch
DerivFE May 3, 2024
60ccb56
fix: translations
May 3, 2024
5f4b14a
fix: empty commit
May 3, 2024
659e984
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 3, 2024
e305d6b
fix: card height changes
May 3, 2024
1943ad2
auto-pull-translation
May 3, 2024
a49cf22
translation: 📚 sync translations from crowdin feature branch
DerivFE May 3, 2024
05cc82f
fix: translations
May 3, 2024
9e6c3c4
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 6, 2024
d3df2f2
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 6, 2024
c50d111
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 6, 2024
3c7d485
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 8, 2024
2f3dba6
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 9, 2024
66bddbd
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 15, 2024
455c029
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 15, 2024
34a9a2e
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 17, 2024
c0ad65e
fix: removing how its calculated
May 17, 2024
6f2372a
fix: resolve conflicts
May 17, 2024
9c85be5
fix: translations
May 17, 2024
ef7fdb7
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 20, 2024
9c753e8
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 20, 2024
d9bd7c3
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 21, 2024
5868510
fix: adding table
May 21, 2024
5291f7c
auto-pull-translation
May 21, 2024
096de30
translation: 📚 sync translations from crowdin feature branch
DerivFE May 21, 2024
2368c2e
fix: translations
May 21, 2024
9bc7fc6
fix: empty commit
May 21, 2024
48408e0
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 23, 2024
e17f44a
Merge branch 'master' into translation-1042-adding-new-commission-plans
May 23, 2024
c95dad1
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 29, 2024
77dcfa0
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 29, 2024
de6b01c
Merge branch 'master' of https://github.com/binary-com/deriv-com
May 31, 2024
faade40
Merge branch 'master' into translation-1042-adding-new-commission-plans
May 31, 2024
3d5ffa8
fix: changes
May 31, 2024
0d63061
auto-pull-translation
May 31, 2024
cfb71e4
translation: 📚 sync translations from crowdin feature branch
DerivFE May 31, 2024
f164862
fix: translations
May 31, 2024
5a51057
Merge branch 'master' of https://github.com/binary-com/deriv-com
Jun 4, 2024
7ba1d0d
Merge branch 'master' of https://github.com/binary-com/deriv-com
Jun 5, 2024
6e8ea4c
Merge branch 'master' of https://github.com/binary-com/deriv-com
Jun 7, 2024
02523df
Merge branch 'master' of https://github.com/binary-com/deriv-com
agrim-deriv Jun 12, 2024
f700b42
Merge branch 'master' of https://github.com/binary-com/deriv-com
agrim-deriv Jun 13, 2024
ba6181e
Merge branch 'master' of https://github.com/binary-com/deriv-com
agrim-deriv Jun 13, 2024
98d46f1
Merge branch 'master' of https://github.com/binary-com/deriv-com
agrim-deriv Jun 14, 2024
2d7eeac
fix: resolve conflicts
agrim-deriv Jun 14, 2024
852180e
auto-pull-translation
agrim-deriv Jun 14, 2024
4486f75
translation: 📚 sync translations from crowdin feature branch
DerivFE Jun 14, 2024
1a6ba41
chore: translations
agrim-deriv Jun 14, 2024
d186441
auto-pull-translation
agrim-deriv Jun 14, 2024
6bbf525
translation: 📚 sync translations from crowdin feature branch
DerivFE Jun 14, 2024
2594f0d
chore: translations
agrim-deriv Jun 14, 2024
72ce089
Merge branch 'master' of https://github.com/binary-com/deriv-com
agrim-deriv Jun 19, 2024
6d71795
Merge branch 'master' of https://github.com/binary-com/deriv-com
agrim-deriv Jun 19, 2024
f0da42a
auto-pull-translation
agrim-deriv Jun 24, 2024
51e43cb
translation: 📚 sync translations from crowdin feature branch
DerivFE Jun 24, 2024
3a55d26
chore: translations
agrim-deriv Jun 24, 2024
3f06106
Merge branch 'master' of https://github.com/binary-com/deriv-com
agrim-deriv Jun 24, 2024
1ec70fd
auto-pull-translation
agrim-deriv Jun 28, 2024
af72695
Merge branch 'master' of https://github.com/binary-com/deriv-com
agrim-deriv Jun 28, 2024
ee58fc6
fix: resolve conflict
agrim-deriv Jun 28, 2024
1bc93c3
auto-pull-translation
agrim-deriv Jun 28, 2024
5599f21
translation: 📚 sync translations from crowdin feature branch
DerivFE Jun 28, 2024
a1e65d7
chore: translations
agrim-deriv Jun 28, 2024
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
102 changes: 26 additions & 76 deletions crowdin/messages.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export const StyledCard = styled(Card)<FlexProps>`
export const StyledTrap = styled(TRAP)`
background-color: var(--color-grey-39);
padding: 1rem 0.8rem;
height: 62px;
max-block-size: 80px;
border-bottom: none;
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,26 @@ const TRAPREVERSE = styled.div<TableProps>`
align-items: center;
justify-content: center;
white-space: nowrap;
min-height: 62px;
min-height: 75px;

:nth-child(odd) {
height: 100%;
}
`
const TRAPREVERSECUSTOM = styled.div<TableProps>`
padding: 1rem 0.8rem;
background-color: ${(props) => (props.even === 'true' ? 'var(--color-grey-39)' : 'unset')};
display: flex;
align-items: center;
justify-content: center;
white-space: nowrap;
min-height: 75px;
top: 18px;
position: relative;

:nth-child(odd) {
height: 100%;
}
`

export { TR, TRAP, TRAPREVERSE, TC, Table }
export { TR, TRAP, TRAPREVERSE, TC, Table,TRAPREVERSECUSTOM }
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const CalculatedCard = ({ toggleCalculated }: { toggleCalculated: () => void })
<Ul>
<Li>
<Header as="p" weight="normal">
<Localize translate_text="_t_A referred client based in the EU deposits USD 100 in one transaction_t_" />
<Localize translate_text="_t_A referred client with an EU account deposits USD 100 in one transaction_t_" />
</Header>
<Header as="p" weight="normal" mt="2.4rem">
<Localize translate_text="_t_Total commission earned: USD 100_t_" />
Expand All @@ -46,10 +46,10 @@ const CalculatedCard = ({ toggleCalculated }: { toggleCalculated: () => void })
<Ul>
<Li>
<Header as="p" weight="normal">
<Localize translate_text="_t_A referred client based in the EU deposits USD 50 in one transaction. Commission = USD 0_t_" />
<Localize translate_text="_t_A referred client with an EU account deposits USD 50 in one transaction. Commission = USD 0_t_" />
</Header>
<Header as="p" weight="normal" mt="2.4rem">
<Localize translate_text="_t_The same EU client deposits USD 50 in another transaction_t_" />
<Localize translate_text="_t_The same client deposits USD 50 in another transaction_t_" />
</Header>
<Header as="p" weight="normal" mt="2.4rem">
<Localize translate_text="_t_Total commission earned: USD 100_t_" />
Expand All @@ -62,7 +62,7 @@ const CalculatedCard = ({ toggleCalculated }: { toggleCalculated: () => void })
<Ul>
<Li>
<Header as="p" weight="normal">
<Localize translate_text="_t_A referred client based in the EU deposits USD 200 in one transaction._t_" />
<Localize translate_text="_t_A referred client with an EU account deposits USD 200 in one transaction._t_" />
</Header>
<Header as="p" weight="normal" mt="2.4rem">
<Localize translate_text="_t_Total commission earned: USD 100_t_" />
Expand All @@ -72,9 +72,6 @@ const CalculatedCard = ({ toggleCalculated }: { toggleCalculated: () => void })
<Header as="p" type="paragraph-2" weight="normal" mt="1.6rem">
<Localize translate_text="_t_(The CPA commission is a one-time payment.)_t_" />
</Header>
<Header as="h2" type="paragraph-2" mt="1.6rem" mb="0.8rem">
<Localize translate_text="_t_Disclaimer: Affiliates not residing in the EU may sign up for the CPA plan._t_" />
</Header>
</div>
<div>
<StyledBackButton tertiary onClick={toggleCalculated} mt="2.4rem">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,54 +1,67 @@
import React from 'react'
import { StyledCard, StyledCalculatedButton, CPAContent, StyledButtonWrap } from '../_style'
import {
StyledCard,
StyledTrap,
StyledText,
} from '../_style'
import { Table, TRAPREVERSE, TC, TRAPREVERSECUSTOM } from '../_table'
import { Header } from 'components/elements/typography'
import { Localize } from 'components/localization'
import { Li, Ul } from 'components/elements'
import { TString } from 'types/generics'

type AffiliateType = {
title: TString
data: TString[]
}[]

const cpa_data: AffiliateType = [
{
title: '_t_Revenue_t_',
data: ['_t_Based on each<br /> successful referral with<br /> deposit of USD 100_t_'],
},
{
title: '_t_Commission_t_',
data: ['_t_USD 100_t_'],
},
]

const DefaultCard = ({ toggleCalculated }: { toggleCalculated: () => void }) => {
return (
<StyledCard height="110rem" tabletHeight="auto" padding="2.4rem">
<StyledCard height="70rem" tabletHeight="auto" padding="2.4rem">
<div>
<Header as="h4" type="sub-section-title" mb="0.8rem">
<Localize translate_text="_t_CPA (EU-based clients only)_t_" />
<Localize translate_text="_t_CPA_t_" />
</Header>
<Header as="p" type="paragraph-1" weight="normal" mb="1.6rem">
<Localize translate_text="_t_Earn based on each successful referral._t_" />
<Header as="p" type="paragraph-1" weight="normal">
<Localize
translate_text="_t_Earn a USD 100 when your new referred client deposits a total of USD 100 (or its equivalent) into their Deriv account, either all at once or over time._t_"
/>
</Header>
<CPAContent>
<Header as="p" type="paragraph-1" weight="normal">
<Localize
translate_text="_t_You earn <0>USD 100</0> when your new referred client deposits and trades a total amount of <0>USD 100</0> or its equivalent into their Deriv account, either in one deposit or cumulatively._t_"
components={[<strong key={0} />]}
/>
</Header>
<Header as="p" type="paragraph-1" weight="normal" mt="1.6rem">
<Localize
translate_text="_t_This plan is available exclusively for EU-based clients. <0>Please note that according to regulations, you cannot have clients who reside in Portugal or Spain.</0>_t_"
components={[<strong key={0} />]}
/>
</Header>
</CPAContent>
<Header as="p" type="paragraph-1" mb="0.8rem" mt="1.6rem">
<Table grid_col_number={2}>
{cpa_data.map(({ title, data }, index) => (
<TC grid_area={'area' + index} key={index}>
<StyledTrap isTitle="true">
<StyledText weight="bold">
<Localize translate_text={title} />
</StyledText>
</StyledTrap>
{data.map((data, id) => (
<TRAPREVERSE even={id % 2 ? 'true' : ''} key={id}>
<StyledText>
<Localize translate_text={data} />
</StyledText>
</TRAPREVERSE>
))}
</TC>
))}
</Table>
<Header as="p" type="paragraph-1" mb="0.8rem" mt="2.4rem">
<Localize translate_text="_t_Disclaimer:_t_" />
</Header>
<Ul>
<Li>
<Header as="p" type="paragraph-1">
<Localize translate_text="_t_This plan is available exclusively for affiliates who promote to clients residing in EU._t_" />
</Header>
</Li>
<Li>
<Header as="p" type="paragraph-1">
<Localize translate_text="_t_Affiliates not residing in the EU may sign up for the CPA plan._t_" />
</Header>
</Li>
</Ul>
<Header as="p" type="paragraph-1">
<Localize translate_text="_t_Affiliates residing outside the EU can sign up for the CPA plan and can refer clients residing in the EU except Portugal and Spain._t_" />
</Header>
</div>
<StyledButtonWrap>
<StyledCalculatedButton flat onClick={toggleCalculated}>
<Localize translate_text="_t_How it’s calculated_t_" />
</StyledCalculatedButton>
</StyledButtonWrap>
</StyledCard>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const CalculatedCard = ({ toggleCalculated }: { toggleCalculated: () => void })
<Ul>
<Li>
<Header as="p" weight="normal">
<Localize translate_text="_t_A referred client based in the EU deposits USD 100 in one transaction_t_" />
<Localize translate_text="_t_A referred client with an EU account deposits USD 100 in one transaction_t_" />
</Header>
<Header as="p" weight="normal" mt="2.4rem">
<Localize translate_text="_t_Total commission earned: USD 100_t_" />
Expand All @@ -46,10 +46,10 @@ const CalculatedCard = ({ toggleCalculated }: { toggleCalculated: () => void })
<Ul>
<Li>
<Header as="p" weight="normal">
<Localize translate_text="_t_A referred client based in the EU deposits USD 50 in one transaction. Commission = USD 0_t_" />
<Localize translate_text="_t_A referred client with an EU account deposits USD 50 in one transaction. Commission = USD 0_t_" />
</Header>
<Header as="p" weight="normal" mt="2.4rem">
<Localize translate_text="_t_The same EU client deposits USD 50 in another transaction_t_" />
<Localize translate_text="_t_The same client deposits USD 50 in another transaction_t_" />
</Header>
<Header as="p" weight="normal" mt="2.4rem">
<Localize translate_text="_t_Total commission earned: USD 100_t_" />
Expand All @@ -62,7 +62,7 @@ const CalculatedCard = ({ toggleCalculated }: { toggleCalculated: () => void })
<Ul>
<Li>
<Header as="p" weight="normal">
<Localize translate_text="_t_A referred client based in the EU deposits USD 200 in one transaction._t_" />
<Localize translate_text="_t_A referred client with an EU account deposits USD 200 in one transaction._t_" />
</Header>
<Header as="p" weight="normal" mt="2.4rem">
<Localize translate_text="_t_Total commission earned: USD 100_t_" />
Expand All @@ -72,9 +72,6 @@ const CalculatedCard = ({ toggleCalculated }: { toggleCalculated: () => void })
<Header as="p" type="paragraph-2" weight="normal" mt="1.6rem">
<Localize translate_text="_t_(The CPA commission is a one-time payment.)_t_" />
</Header>
<Header as="h2" type="paragraph-2" mt="1.6rem" mb="0.8rem">
<Localize translate_text="_t_Disclaimer: Affiliates not residing in the EU may sign up for the CPA plan._t_" />
</Header>
</div>
<div>
<StyledBackButton tertiary onClick={toggleCalculated} mt="2.4rem">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,44 +1,67 @@
import React from 'react'
import { StyledCard, StyledCalculatedButton, CPAContent, StyledButtonWrap } from '../_style'
import {
StyledCard,
StyledTrap,
StyledText,
} from '../_style'
import { Table, TRAPREVERSE, TC, TRAPREVERSECUSTOM } from '../_table'
import { Header } from 'components/elements/typography'
import { Localize } from 'components/localization'
import { TString } from 'types/generics'

type AffiliateType = {
title: TString
data: TString[]
}[]

const cpa_data: AffiliateType = [
{
title: '_t_Revenue_t_',
data: ['_t_Based on each<br /> successful referral with<br /> deposit of USD 100_t_'],
},
{
title: '_t_Commission_t_',
data: ['_t_USD 100_t_'],
},
]

const DefaultCard = ({ toggleCalculated }: { toggleCalculated: () => void }) => {
return (
<StyledCard height="auto" tabletHeight="auto" padding="2.4rem">
<StyledCard height="70rem" tabletHeight="auto" padding="2.4rem">
<div>
<Header as="h4" type="sub-section-title" mb="0.8rem">
<Localize translate_text="_t_CPA (EU only)_t_" />
<Localize translate_text="_t_CPA_t_" />
</Header>
<Header as="p" type="paragraph-1" weight="normal" mb="1.6rem">
<Localize translate_text="_t_Earn based on each successful referral._t_" />
<Header as="p" type="paragraph-1" weight="normal">
<Localize
translate_text="_t_Earn a USD 100 when your new referred client deposits a total of USD 100 (or its equivalent) into their Deriv account, either all at once or over time._t_"
/>
</Header>
<CPAContent>
<Header as="p" type="paragraph-1" weight="normal">
<Localize
translate_text="_t_You earn <0>USD 100</0> when your new referred client deposits and trades a total amount of <0>USD 100</0> or its equivalent into their Deriv account, either in one deposit or cumulatively._t_"
components={[<strong key={0} />]}
/>
</Header>
<Header as="p" type="paragraph-1" weight="normal" mt="1.6rem">
<Localize
translate_text="_t_This plan is available exclusively for EU-based clients. <0>Please note that according to regulations, you cannot have clients who reside in Portugal or Spain.</0>_t_"
components={[<strong key={0} />]}
/>
</Header>
</CPAContent>
<Header as="p" type="paragraph-1" mb="0.8rem" mt="1.6rem">
<Table grid_col_number={2}>
{cpa_data.map(({ title, data }, index) => (
<TC grid_area={'area' + index} key={index}>
<StyledTrap isTitle="true">
<StyledText weight="bold">
<Localize translate_text={title} />
</StyledText>
</StyledTrap>
{data.map((data, id) => (
<TRAPREVERSE even={id % 2 ? 'true' : ''} key={id}>
<StyledText>
<Localize translate_text={data} />
</StyledText>
</TRAPREVERSE>
))}
</TC>
))}
</Table>
<Header as="p" type="paragraph-1" mb="0.8rem" mt="2.4rem">
<Localize translate_text="_t_Disclaimer:_t_" />
</Header>
<Header as="p" type="paragraph-1">
<Localize translate_text="_t_This plan is available exclusively for affiliates who promote to clients residing in EU._t_" />
<Localize translate_text="_t_ Affiliates residing outside the EU can sign up for the CPA plan and can refer clients residing in the EU except Portugal and Spain._t_" />
</Header>
</div>
<StyledButtonWrap>
<StyledCalculatedButton flat onClick={toggleCalculated}>
<Localize translate_text="_t_How it’s calculated_t_" />
</StyledCalculatedButton>
</StyledButtonWrap>
</StyledCard>
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { StyledCard, StyledCalculatedButton, StyledButtonWrap } from '../_style'
import { StyledCard} from '../_style'
import { Localize } from 'components/localization'
import { Header } from 'components/elements/typography'

Expand All @@ -23,11 +23,6 @@ const DefaultCard = ({ toggleCalculated }: { toggleCalculated: () => void }) =>
<Localize translate_text="_t_Only affiliates with Revenue share and/or Turnover plans are eligible to apply to become Master Affiliate._t_" />
</Header>
</div>
<StyledButtonWrap>
<StyledCalculatedButton flat onClick={toggleCalculated}>
<Localize translate_text="_t_How it’s calculated_t_" />
</StyledCalculatedButton>
</StyledButtonWrap>
</StyledCard>
)
}
Expand Down
Loading
Loading