Skip to content

Commit

Permalink
add navigation to backup prompt on new group creation
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Jan 3, 2025
1 parent ebbd628 commit c884523
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import WalletBackupTypes from '@/helpers/walletBackupTypes';
import WalletTypes, { EthereumWalletType } from '@/helpers/walletTypes';
import ImageAvatar from '@/components/contacts/ImageAvatar';
import { useENSAvatar, useInitializeWallet, useManageCloudBackups, useWallets } from '@/hooks';
import { useNavigation } from '@/navigation';
import { Navigation, useNavigation } from '@/navigation';
import { abbreviations, deviceUtils } from '@/utils';
import { addressHashedEmoji } from '@/utils/profileUtils';
import * as i18n from '@/languages';
Expand Down Expand Up @@ -38,6 +38,7 @@ import { executeFnIfCloudBackupAvailable } from '@/model/backup';
import { walletLoadingStore } from '@/state/walletLoading/walletLoading';
import { AbsolutePortalRoot } from '@/components/AbsolutePortal';
import { FlatList, ScrollView } from 'react-native';
import walletBackupStepTypes from '@/helpers/walletBackupStepTypes';

type WalletPillProps = {
account: RainbowAccount;
Expand Down Expand Up @@ -198,6 +199,9 @@ export const WalletsAndBackup = () => {
loadingState: null,
});
scrollviewRef.current?.scrollTo({ y: 0, animated: true });
Navigation.handleAction(Routes.BACKUP_SHEET, {
step: walletBackupStepTypes.backup_prompt,
});
}
},
});
Expand Down

0 comments on commit c884523

Please sign in to comment.