|
@@ -407,6 +407,15 @@ class ProxiwashScreen extends React.Component<PropsType, StateType> {
|
407
|
407
|
};
|
408
|
408
|
|
409
|
409
|
/**
|
|
410
|
+ * Callback used when the user clicks on the navigate to settings button.
|
|
411
|
+ * This will hide the banner and open the SettingsScreen
|
|
412
|
+ */
|
|
413
|
+ onGoToSettings = () => {
|
|
414
|
+ const {navigation} = this.props;
|
|
415
|
+ navigation.navigate('settings');
|
|
416
|
+ };
|
|
417
|
+
|
|
418
|
+ /**
|
410
|
419
|
* Shows a modal for the given item
|
411
|
420
|
*
|
412
|
421
|
* @param title The title to use
|
|
@@ -499,10 +508,14 @@ class ProxiwashScreen extends React.Component<PropsType, StateType> {
|
499
|
508
|
message={i18n.t('screens.proxiwash.mascotDialog.message')}
|
500
|
509
|
icon="information"
|
501
|
510
|
buttons={{
|
502
|
|
- action: null,
|
503
|
|
- cancel: {
|
|
511
|
+ action: {
|
504
|
512
|
message: i18n.t('screens.proxiwash.mascotDialog.ok'),
|
505
|
|
- icon: 'check',
|
|
513
|
+ icon: 'cog',
|
|
514
|
+ onPress: this.onGoToSettings,
|
|
515
|
+ },
|
|
516
|
+ cancel: {
|
|
517
|
+ message: i18n.t('screens.proxiwash.mascotDialog.cancel'),
|
|
518
|
+ icon: 'close',
|
506
|
519
|
},
|
507
|
520
|
}}
|
508
|
521
|
emotion={MASCOT_STYLE.NORMAL}
|