Skip to content

Commit

Permalink
Kate / OPT-306 / Update Accumulator to Accumulators (#9577)
Browse files Browse the repository at this point in the history
* chore: change text

* chore: apply suggestion
  • Loading branch information
kate-deriv committed Aug 15, 2023
1 parent 44319aa commit f85083c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
&--accumulator,
&--turbos {
display: flex;
grid-gap: 1px;
&-sold {
padding-top: 1rem;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const getUnsupportedContracts = () => ({
export const getSupportedContracts = is_high_low => ({
ACCU: {
button_name: 'Buy',
name: 'Accumulator',
name: 'Accumulators',
position: 'top',
},
CALL: {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Constants/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const getUnsupportedContracts = () => ({
export const getSupportedContracts = is_high_low => ({
ACCU: {
button_name: localize('Buy'),
name: localize('Accumulator'),
name: localize('Accumulators'),
position: 'top',
},
CALL: {
Expand Down
6 changes: 3 additions & 3 deletions packages/shared/src/utils/constants/contract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { localize, Localize } from '@deriv/translations';
import { shouldShowCancellation, shouldShowExpiration, TURBOS } from '../contract';

export const getLocalizedBasis = () => ({
accumulator: localize('Accumulator'),
accumulator: localize('Accumulators'),
payout: localize('Payout'),
payout_per_point: localize('Payout per point'),
stake: localize('Stake'),
Expand Down Expand Up @@ -121,7 +121,7 @@ export const getContractTypesConfig: TGetContractTypesConfig = symbol => ({
components: [],
},
accumulator: {
title: localize('Accumulator'),
title: localize('Accumulators'),
trade_types: ['ACCU'],
basis: ['stake'],
components: ['take_profit', 'accumulator', 'accu_info_display'],
Expand Down Expand Up @@ -398,7 +398,7 @@ export const getSupportedContracts = (is_high_low?: boolean) =>
({
ACCU: {
button_name: <Localize i18n_default_text='Buy' />,
name: <Localize i18n_default_text='Accumulator' />,
name: <Localize i18n_default_text='Accumulators' />,
position: 'top',
},
CALL: {
Expand Down
2 changes: 1 addition & 1 deletion packages/trader/src/Constants/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export const getUnsupportedContracts = () => ({
export const getSupportedContracts = is_high_low => ({
ACCU: {
button_name: <Localize i18n_default_text='Buy' />,
name: <Localize i18n_default_text='Accumulator' />,
name: <Localize i18n_default_text='Accumulators' />,
position: 'top',
},
CALL: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import {
} from '../contract-type';

const contract_types_test_list = {
Accumulators: { name: 'Accumulators', categories: [{ value: 'accumulator', text: 'Accumulator' }] },
Accumulators: { name: 'Accumulators', categories: [{ value: 'accumulator', text: 'Accumulators' }] },
Digits: { name: 'Digits', categories: [{ value: 'match_diff', text: 'Matches/Differs' }] },
'Ins & Outs': { name: 'Ins & Outs', categories: [{ value: 'end', text: 'Ends In/Ends Out' }] },
};
const unsupported_test_list = ['end', 'stay'];
const unsupported_short_test_list = ['stay'];
const contract_type_array = [
{ value: 'accumulator', text: 'Accumulator' },
{ value: 'accumulator', text: 'Accumulators' },
{ value: 'rise_fall', text: 'Rise/Fall' },
];
const contract_category_list = [
Expand Down

1 comment on commit f85083c

@vercel
Copy link

@vercel vercel bot commented on f85083c Aug 15, 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-app – ./

deriv-app.vercel.app
binary.sx
deriv-app.binary.sx
deriv-app-git-master.binary.sx

Please sign in to comment.