Skip to content

Commit

Permalink
Update GuiPluginListScene with new title
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-edge committed Oct 25, 2024
1 parent 22c54b7 commit 3e35183
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/scenes/GuiPluginListScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,9 @@ class GuiPluginList extends React.PureComponent<Props, State> {
<>
<EdgeAnim style={styles.header} enter={fadeInUp90}>
<SceneHeader
title={direction === 'buy' ? getUkCompliantString(countryCode, 'buy_1s', titleAsset) : getUkCompliantString(countryCode, 'sell_1s', titleAsset)}
title={
direction === 'buy' ? getUkCompliantString(countryCode, 'buy_1s_title', titleAsset) : getUkCompliantString(countryCode, 'sell_1s', titleAsset)
}
underline
withTopMargin
/>
Expand Down
1 change: 1 addition & 0 deletions src/locales/en_US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,7 @@ const strings = {

uk_ways_to_buy_1s: 'Ways to Buy %1$s',
uk_ways_to_sell_1s: 'Ways to Sell %1$s',
uk_get_quote_provider_1s: 'Get %1$s Quote from 3rd Party Provider',

// #endregion UK Compliance

Expand Down
1 change: 1 addition & 0 deletions src/locales/strings/enUS.json
Original file line number Diff line number Diff line change
Expand Up @@ -1416,6 +1416,7 @@
"button_support": "Contact Support",
"uk_ways_to_buy_1s": "Ways to Buy %1$s",
"uk_ways_to_sell_1s": "Ways to Sell %1$s",
"uk_get_quote_provider_1s": "Get %1$s Quote from 3rd Party Provider",
"redacted_placeholder": "●●●●",
"insufficient_funds_2s": "Insufficient %1$s (%2$s).",
"split_from_1s": "Split from %1$s",
Expand Down
1 change: 1 addition & 0 deletions src/util/ukComplianceUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { lstrings } from '../locales/strings'

const UK_COMPLIANT_STRING_MAP: { [key: string]: { default: LocaleStringKey; gb: LocaleStringKey } } = {
buy_1s: { default: 'buy_1s', gb: 'uk_ways_to_buy_1s' },
buy_1s_title: { default: 'buy_1s', gb: 'uk_get_quote_provider_1s' },
sell_1s: { default: 'sell_1s', gb: 'uk_ways_to_sell_1s' },
stake_earn_1s: { default: 'stake_earn_1s', gb: 'stake_stake_1s' },
stake_earn_button_label: { default: 'stake_earn_button_label', gb: 'fragment_stake_label' },
Expand Down

0 comments on commit 3e35183

Please sign in to comment.