Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit d2bffff

Browse files
konstantinosG-derivKonstantinos-Gk
andauthored
fix: subtasks (#4228)
Co-authored-by: Konstantinos-Gk <[email protected]>
1 parent d609a15 commit d2bffff

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed

crowdin/messages.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"80411232": "Keep your login details secure and <0>enable two-factor authentication</0> to prevent unauthorised usage of your account.",
6969
"81450871": "We couldn’t find that page",
7070
"83067481": "Our tracking site: t.deriv.com",
71+
"83428444": "Start trading accumulators on Deriv",
7172
"84123624": "Partnership Programme | Deriv",
7273
"84402478": "Where do I find the blocks I need?",
7374
"84605906": "The Deriv MT5 Financial account offers you leverage to trade contracts for difference (CFDs) on forex, stocks, stock indices, commodities, synthetic indices, and cryptocurrencies.",

src/components/elements/full-width-multicolumn.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,20 @@ const StyledTitle = styled(Header)`
7777
line-height: 30px;
7878
}
7979
`
80+
const StyledButtonContent = styled(Text)`
81+
text-align: center;
82+
margin-top: 1.6rem;
83+
color: white;
84+
font-weight: 700;
85+
font-size: 16px;
86+
line-height: 24px;
87+
margin-bottom: 1.6rem;
88+
89+
@media ${device.tabletL} {
90+
font-size: 14px;
91+
}
92+
`
93+
8094
const StyledTextContent = styled(Text)`
8195
text-align: center;
8296
margin-top: 1.6rem;
@@ -131,7 +145,7 @@ export const FullWidthMultiColumn = ({
131145
})}
132146
</ItemContainer>
133147
))}
134-
{button_title && <StyledTextContent>{button_title}</StyledTextContent>}
148+
{button_title && <StyledButtonContent>{button_title}</StyledButtonContent>}
135149
{button_text && <Button onClick={handleSignup} label={button_text} primary />}
136150
</Flex>
137151
</StyledSectionContainer>

src/pages/trade-types/accumulators/_how-accumulators-works.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,29 @@ const HowAccumulatorsWork = () => {
5555
<CommonHeaderSection
5656
subtitle_font_size="1.6rem"
5757
font_weight="300"
58+
line_height="2.4rem"
5859
subtitle="_t_When you open a position, barriers are created around the asset’s price. The upper and lower barriers are automatically calculated for every tick based on your chosen asset and accumulator value. If you close your position before either of the barriers is reached, you will make a profit._t_"
5960
/>
6061
<CommonHeaderSection
6162
subtitle_font_size="1.6rem"
6263
margin_subtitle="2rem 0 4rem 0"
6364
font_weight="300"
65+
line_height="2.4rem"
6466
subtitle="_t_With each tick, your payout will increase based on the accumulator value you select, as long as the price change is within the barrier._t_"
6567
/>
6668
<CommonHeaderSection
6769
title="_t_Take profit_t_"
6870
title_font_size="2.4rem"
6971
subtitle_font_size="1.6rem"
72+
line_height="2.4rem"
7073
margin_subtitle="2rem 0 0 0"
7174
font_weight="300"
7275
subtitle="_t_You can set a take profit or payout level. Your position will automatically close when your profit exceeds or reaches this amount._t_"
7376
/>
7477
<CommonHeaderSection
7578
subtitle_font_size="1.6rem"
7679
margin_subtitle="2rem 0 4rem 0"
80+
line_height="2.4rem"
7781
font_weight="300"
7882
subtitle="_t_ Based on the number of ticks and the accumulator value, your potential profit may exceed your set amount multiple times._t_"
7983
/>
@@ -83,13 +87,15 @@ const HowAccumulatorsWork = () => {
8387
subtitle_font_size="1.6rem"
8488
margin_subtitle="2rem 0 4rem 0"
8589
font_weight="300"
90+
line_height="2.4rem"
8691
subtitle="_t_The maximum payout for every contract is limited and differs per asset. When the maximum payout is reached, the contract will be automatically closed._t_"
8792
/>
8893
<CommonHeaderSection
8994
title="_t_Maximum duration_t_"
9095
title_font_size="2.4rem"
9196
subtitle_font_size="1.6rem"
9297
margin_subtitle="2rem 0 4rem 0"
98+
line_height="2.4rem"
9399
font_weight="300"
94100
subtitle="_t_The maximum duration for every contract is limited and differs according to the chosen accumulator value. When the maximum duration is reached, the contract will be automatically closed._t_"
95101
/>

src/pages/trade-types/accumulators/_what-are-accumulators.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const WhatAreAccumulators = () => {
1313
<>
1414
<SectionContainer background="white" padding="8rem 0 4rem">
1515
<SmallContainer direction="column" ai="flex-start">
16-
<Header as="h2" type="page-title" mb="1.2rem">
16+
<Header as="h2" type="heading-2" mb="1.2rem">
1717
{localize('What are accumulators?')}
1818
</Header>
1919
<Text mb="4rem">

src/pages/trade-types/accumulators/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import CommonHeaderSection from 'components/elements/common-header-section'
1111
import OptionsNavTab from 'pages/markets/components/sections/_options-nav-tab'
1212
import { localize, WithIntl } from 'components/localization'
1313
import { StepperView } from 'components/elements'
14+
import useHandleSignup from 'components/hooks/use-handle-signup'
1415
import useRegion from 'components/hooks/use-region'
1516
const HowAccumulatorsWork = Loadable(() => import('./_how-accumulators-works'))
1617
const AccumulatorsToTrade = Loadable(() => import('./_accumulators-to-trade'))
@@ -29,6 +30,7 @@ const ButtonContainer = styled.div`
2930
const Accumulators = () => {
3031
const { is_row } = useRegion()
3132
const [is_loaded, setLoaded] = useState(false)
33+
const handleSignup = useHandleSignup()
3234

3335
useEffect(() => {
3436
setLoaded(true)
@@ -57,7 +59,7 @@ const Accumulators = () => {
5759
<AccumulatorsToTrade />
5860
<SmallContainer direction="column" ai="flex-start">
5961
<CommonHeaderSection
60-
title="_t_Start trading options on Deriv_t_"
62+
title="_t_Start trading accumulators on Deriv_t_"
6163
title_font_size="3.2rem"
6264
margin_title="15rem 0 7rem 0"
6365
/>
@@ -70,7 +72,7 @@ const Accumulators = () => {
7072
third_step_subtitle="_t_Conveniently withdraw your funds through any of our supported withdrawal methods._t_"
7173
/>
7274
<ButtonContainer>
73-
<Button label="Create free demo account" primary />
75+
<Button label="Create free demo account" onClick={handleSignup} primary />
7476
</ButtonContainer>
7577
</SmallContainer>
7678
</Layout>

0 commit comments

Comments
 (0)