From e40cd157b6d1683cf9eb9548714c604649134971 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Tue, 18 Oct 2022 13:54:45 +0530 Subject: [PATCH] fix: remove switch to classic mx option --- .../Preferences/Panes/General/Defaults.tsx | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/packages/web/src/javascripts/Components/Preferences/Panes/General/Defaults.tsx b/packages/web/src/javascripts/Components/Preferences/Panes/General/Defaults.tsx index 204fd4e2b..8862e81b4 100644 --- a/packages/web/src/javascripts/Components/Preferences/Panes/General/Defaults.tsx +++ b/packages/web/src/javascripts/Components/Preferences/Panes/General/Defaults.tsx @@ -6,7 +6,6 @@ import { ComponentArea, ComponentMutator, SNComponent, - StorageValueModes, NewNoteTitleFormat, } from '@standardnotes/snjs' import { Subtitle, Text, Title } from '@/Components/Preferences/PreferencesComponents/Content' @@ -17,7 +16,6 @@ import Switch from '@/Components/Switch/Switch' import { PLAIN_EDITOR_NAME } from '@/Constants/Constants' import PreferencesGroup from '../../PreferencesComponents/PreferencesGroup' import PreferencesSegment from '../../PreferencesComponents/PreferencesSegment' -import Button from '@/Components/Button/Button' import CustomNoteTitleFormat from './Defaults/CustomNoteTitleFormat' import { PrefDefaults } from '@/Constants/PrefDefaults' @@ -54,8 +52,6 @@ const getDefaultEditor = (application: WebApplication) => { return application.componentManager.componentsForArea(ComponentArea.Editor).filter((e) => e.isDefaultEditor())[0] } -const AlwaysOpenWebAppOnLaunchKey = 'AlwaysOpenWebAppOnLaunch' - const Defaults: FunctionComponent = ({ application }) => { const [editorItems, setEditorItems] = useState([]) const [defaultEditorValue, setDefaultEditorValue] = useState( @@ -125,13 +121,6 @@ const Defaults: FunctionComponent = ({ application }) => { } } - const switchToNativeView = async () => { - application.setValue(AlwaysOpenWebAppOnLaunchKey, false, StorageValueModes.Nonwrapped) - setTimeout(() => { - application.deviceInterface.performSoftReset() - }, 1000) - } - const noteTitleFormatOptions = useMemo( () => [ { @@ -158,19 +147,6 @@ const Defaults: FunctionComponent = ({ application }) => { Defaults - {application.isNativeMobileWeb() && ( - <> -
- Switch to Classic Mobile Experience - - This will close the app and switch back to the soon-to-be removed classic mobile experience. You can opt - back in to new experience from the app settings. - -
- - - )}
Default Note Type New notes will be created using this type