mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
use tabBarRef to navigate
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user