-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[5.3] Add On-Ramp Aggregator What's new modal (#4484)
* Add On-Ramp Aggregator What's new modal * Add images * Simplify image logic * Small adjustments * Change onlyUpdates to false * Update comment Co-authored-by: Cal Leung <[email protected]>
- Loading branch information
Showing
10 changed files
with
107 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,38 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
import Routes from '../../../constants/navigation/Routes'; | ||
import { strings } from '../../../../locales/i18n'; | ||
import { WhatsNew } from './types'; | ||
|
||
export const whatsNew: WhatsNew = { | ||
// All users that have <1.0.7 and are updating to >=1.0.7 should see | ||
onlyUpdates: true, // Only users who updated the app will see this, not newly installs | ||
maxLastAppVersion: '1.0.7', // Only users who had a previous version <1.0.7 version will see this | ||
minAppVersion: '1.0.7', // Only users who updated to a version >= 1.0.7 will see this | ||
slides: [[], [], []], | ||
// All users that have <5.3.0 and are updating to >=5.3.0 should see | ||
onlyUpdates: false, // Only users who updated the app will see this, not newly installs | ||
maxLastAppVersion: '5.3.0', // Only users who had a previous version <5.3.0 version will see this | ||
minAppVersion: '5.3.0', // Only users who updated to a version >=5.3.0 will see this | ||
slides: [ | ||
[ | ||
{ | ||
type: 'image', | ||
/* eslint-disable import/no-commonjs, @typescript-eslint/no-require-imports */ | ||
images: { | ||
light: require('../../../images/whats_new_onramp_agg_light.png'), | ||
dark: require('../../../images/whats_new_onramp_agg_dark.png'), | ||
}, | ||
}, | ||
{ | ||
type: 'title', | ||
title: strings('whats_new.feature_on_ramp_title'), | ||
}, | ||
{ | ||
type: 'description', | ||
description: strings('whats_new.feature_on_ramp_text'), | ||
}, | ||
{ | ||
type: 'button', | ||
buttonType: 'blue', | ||
buttonText: strings('whats_new.feature_on_ramp_button'), | ||
onPress: ({ navigation }) => | ||
navigation.navigate(Routes.FIAT_ON_RAMP_AGGREGATOR.ID), | ||
}, | ||
], | ||
], | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters