mirror of
https://github.com/selfxyz/self.git
synced 2026-02-19 02:24:25 -05:00
SELF-1159: Show gratification screen after notifications and backup enabling (#1403)
This commit is contained in:
committed by
GitHub
parent
67eb0d46e4
commit
7ccf688a1d
@@ -178,15 +178,8 @@ const Points: React.FC = () => {
|
||||
setIsGeneralSubscribed(true);
|
||||
selfClient.trackEvent(PointEvents.EARN_NOTIFICATION_SUCCESS);
|
||||
|
||||
const callbackId = registerModalCallbacks({
|
||||
onButtonPress: () => {},
|
||||
onModalDismiss: () => {},
|
||||
});
|
||||
navigation.navigate('Modal', {
|
||||
titleText: 'Success!',
|
||||
bodyText: `Push notifications enabled! You earned ${POINT_VALUES.notification} points.\n\nPoints will be distributed to your wallet on the next Sunday at noon UTC.`,
|
||||
buttonText: 'OK',
|
||||
callbackId,
|
||||
navigation.navigate('Gratification', {
|
||||
points: POINT_VALUES.notification,
|
||||
});
|
||||
} else {
|
||||
selfClient.trackEvent(PointEvents.EARN_NOTIFICATION_FAILED, {
|
||||
@@ -279,15 +272,8 @@ const Points: React.FC = () => {
|
||||
setBackupForPointsCompleted();
|
||||
selfClient.trackEvent(PointEvents.EARN_BACKUP_SUCCESS);
|
||||
|
||||
const callbackId = registerModalCallbacks({
|
||||
onButtonPress: () => {},
|
||||
onModalDismiss: () => {},
|
||||
});
|
||||
navigation.navigate('Modal', {
|
||||
titleText: 'Success!',
|
||||
bodyText: `Account backed up successfully! You earned ${POINT_VALUES.backup} points.\n\nPoints will be distributed to your wallet on the next Sunday at noon UTC.`,
|
||||
buttonText: 'OK',
|
||||
callbackId,
|
||||
navigation.navigate('Gratification', {
|
||||
points: POINT_VALUES.backup,
|
||||
});
|
||||
} else {
|
||||
selfClient.trackEvent(PointEvents.EARN_BACKUP_FAILED);
|
||||
|
||||
Reference in New Issue
Block a user