feat: implement user toolbar config

This commit is contained in:
Ammar Ahmed
2022-07-01 16:08:59 +05:00
parent f11ce772d7
commit ee017bf772
5 changed files with 59 additions and 581 deletions

View File

@@ -40,6 +40,7 @@ import {
ToastEvent
} from '../../services/event-manager';
import { useEditorStore } from '../../stores/use-editor-store';
import { useDragState } from '../../screens/settings/editor/state';
const SodiumEventEmitter = new NativeEventEmitter(NativeModules.Sodium);
export const useAppEvents = () => {
@@ -251,6 +252,7 @@ export const useAppEvents = () => {
user = await db.user.getUser();
await PremiumService.setPremiumStatus();
setLastSynced(await db.lastSynced());
await useDragState.getState().init();
if (!user) {
return setLoginMessage();
}