fix: use a specific feature flag for workspace (#1133)

This commit is contained in:
Vardan Hakobyan
2022-06-22 00:38:40 +04:00
committed by GitHub
parent 13cb655d1c
commit b25919099f
7 changed files with 15 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
import { IsDev } from '@Lib/Utils'
import { WorkspacesEnabled } from '@Lib/constants'
import AsyncStorage from '@react-native-community/async-storage'
import SNReactNative from '@standardnotes/react-native-utils'
import {
@@ -316,7 +316,7 @@ export class MobileDeviceInterface implements DeviceInterface {
}
performSoftReset() {
if (IsDev) {
if (WorkspacesEnabled) {
SNReactNative.exitApp()
}
}

View File

@@ -1,3 +1,7 @@
import { IsDev } from '@Lib/Utils'
export enum ErrorMessage {
GeneralText = 'An error occurred. Please try again later.',
}
export const WorkspacesEnabled = IsDev