Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ramp): offramp unsupported region copy update #7577

Merged
merged 7 commits into from
Nov 10, 2023
11 changes: 10 additions & 1 deletion app/components/UI/Ramp/buy/Views/Regions/Regions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,16 @@ const RegionsView = () => {
subtitle={`${unsupportedRegion?.emoji} ${unsupportedRegion?.name}`}
dismiss={clearUnsupportedRegion}
title={strings('fiat_on_ramp_aggregator.region.unsupported')}
body={strings('fiat_on_ramp_aggregator.region.unsupported_description')}
body={strings(
'fiat_on_ramp_aggregator.region.unsupported_description',
{
rampType: strings(
isBuy
? 'fiat_on_ramp_aggregator.buy'
: 'fiat_on_ramp_aggregator.sell',
),
},
)}
link={strings('fiat_on_ramp_aggregator.region.unsupported_link')}
/>

Expand Down
8 changes: 8 additions & 0 deletions app/components/UI/Ramp/common/components/RegionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const RegionModal: React.FC<Props> = ({
const list = useRef<FlatList<Region>>(null);
const [searchString, setSearchString] = useState('');
const [currentData, setCurrentData] = useState(data || []);
const isBuy = rampType === RampType.BUY;

// local state variable to set the active view (countries vs. regions)
const [activeView, setActiveView] = useState(RegionViewType.COUNTRY);
Expand Down Expand Up @@ -382,6 +383,13 @@ const RegionModal: React.FC<Props> = ({
title={strings('fiat_on_ramp_aggregator.region.unsupported')}
body={strings(
'fiat_on_ramp_aggregator.region.unsupported_description',
{
rampType: strings(
isBuy
? 'fiat_on_ramp_aggregator.buy'
: 'fiat_on_ramp_aggregator.sell',
),
},
)}
link={strings('fiat_on_ramp_aggregator.region.unsupported_link')}
/>
Expand Down
2 changes: 1 addition & 1 deletion locales/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@
"select_region_title": "Select your Region",
"select_country_registered": "Select the country where your card is registered (regardless of where you are located).",
"unsupported": "Region Not Supported",
"unsupported_description": "We are working hard to expand coverage to your region as soon as we can. In the meantime, see our support article for other ways you may be able to buy crypto.",
"unsupported_description": "We are working hard to expand coverage to your region as soon as we can. In the meantime, see our support article for other ways you may be able to {{rampType}} crypto.",
"unsupported_link": "Visit Support Article"
},
"order_details": {
Expand Down