From 233b45ba65bc504dcff98f538bcc422e873cdb89 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sat, 14 Nov 2020 10:07:23 +0500 Subject: [PATCH] use tabBarRef to navigate --- apps/mobile/src/components/VaultDialog/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.js index 304335718..309047a98 100644 --- a/apps/mobile/src/components/VaultDialog/index.js +++ b/apps/mobile/src/components/VaultDialog/index.js @@ -19,6 +19,7 @@ import { eOpenVaultDialog, refreshNotesPage, } from '../../utils/Events'; +import { tabBarRef } from '../../utils/Refs'; import {ph, pv, SIZE, WEIGHT} from '../../utils/SizeUtils'; import BaseDialog from '../Dialog/base-dialog'; import DialogButtons from '../Dialog/dialog-buttons'; @@ -215,7 +216,7 @@ export class VaultDialog extends Component { eSendEvent(eOnLoadNote, note); if (!DDS.isTab) { - openEditorAnimation(); + tabBarRef.current?.goToPage(1); } ToastEvent.show('Note unlocked', 'success'); this.close();