diff --git a/packages/mobile/src/Lib/Interface.ts b/packages/mobile/src/Lib/Interface.ts index d8401a9444e..d0c1b4f7937 100644 --- a/packages/mobile/src/Lib/Interface.ts +++ b/packages/mobile/src/Lib/Interface.ts @@ -1,4 +1,3 @@ -import { WorkspacesEnabled } from '@Lib/constants' import AsyncStorage from '@react-native-community/async-storage' import SNReactNative from '@standardnotes/react-native-utils' import { @@ -322,9 +321,7 @@ export class MobileDeviceInterface implements DeviceInterface { } performSoftReset() { - if (WorkspacesEnabled) { - SNReactNative.exitApp() - } + SNReactNative.exitApp() } // eslint-disable-next-line @typescript-eslint/no-empty-function diff --git a/packages/mobile/src/Lib/constants.ts b/packages/mobile/src/Lib/constants.ts index b06a1836de8..4d24934b9a2 100644 --- a/packages/mobile/src/Lib/constants.ts +++ b/packages/mobile/src/Lib/constants.ts @@ -1,7 +1,3 @@ -import { IsDev } from '@Lib/Utils' - export enum ErrorMessage { GeneralText = 'An error occurred. Please try again later.', } - -export const WorkspacesEnabled = IsDev diff --git a/packages/mobile/src/Screens/Settings/Sections/OptionsSection.tsx b/packages/mobile/src/Screens/Settings/Sections/OptionsSection.tsx index e204164873f..18011857ba0 100644 --- a/packages/mobile/src/Screens/Settings/Sections/OptionsSection.tsx +++ b/packages/mobile/src/Screens/Settings/Sections/OptionsSection.tsx @@ -1,4 +1,3 @@ -import { WorkspacesEnabled } from '@Lib/constants' import { useSignedIn } from '@Lib/SnjsHelperHooks' import { useNavigation } from '@react-navigation/native' import { ButtonCell } from '@Root/Components/ButtonCell' @@ -80,9 +79,7 @@ export const OptionsSection = ({ title, encryptionAvailable }: Props) => { let signoutText = 'Signing out will remove all data from this device, including notes and tags. Make sure your data is synced before proceeding.' - if (WorkspacesEnabled) { - signoutText += '\n\nYour app will quit after sign out completes.' - } + signoutText += '\n\nYour app will quit after sign out completes.' if (await application.alertService.confirm(signoutText, 'Sign Out?', 'Sign Out', ButtonType.Danger)) { await application.user.signOut() diff --git a/packages/mobile/src/Screens/Settings/Settings.tsx b/packages/mobile/src/Screens/Settings/Settings.tsx index 7a7f3222945..15ad7850d60 100644 --- a/packages/mobile/src/Screens/Settings/Settings.tsx +++ b/packages/mobile/src/Screens/Settings/Settings.tsx @@ -1,4 +1,3 @@ -import { WorkspacesEnabled } from '@Lib/constants' import { useSignedIn } from '@Lib/SnjsHelperHooks' import { useSafeApplicationContext } from '@Root/Hooks/useSafeApplicationContext' import { ModalStackNavigationProp } from '@Root/ModalStack' @@ -56,7 +55,7 @@ export const Settings = (props: Props) => { - {WorkspacesEnabled && } + {application.hasAccount() && isEntitledToFiles && }