diff --git a/src/renderer/src/components/settings/MobileSettingsPane.tsx b/src/renderer/src/components/settings/MobileSettingsPane.tsx index 1be2aa480..fe3be19d1 100644 --- a/src/renderer/src/components/settings/MobileSettingsPane.tsx +++ b/src/renderer/src/components/settings/MobileSettingsPane.tsx @@ -1,11 +1,7 @@ -import type { GlobalSettings } from '../../../../shared/types' -import { Label } from '../ui/label' import { SearchableSetting } from './SearchableSetting' -import { matchesSettingsSearch } from './settings-search' -import { useAppStore } from '../../store' import { MobilePane } from './MobilePane' import { - getMobileEnableSearchEntry, + getMobileOverviewSearchEntry, getMobileSettingsPaneSearchEntries } from './mobile-settings-search' import { translate } from '@/i18n/i18n' @@ -15,100 +11,50 @@ const ORCA_IOS_APP_STORE_URL = 'https://apps.apple.com/app/orca-ide/id6766130217 const ORCA_ANDROID_APK_URL = 'https://github.com/stablyai/orca/releases/download/mobile-android-v0.0.14/app-release.apk' -type MobileSettingsPaneProps = { - settings: GlobalSettings - updateSettings: (updates: Partial) => void -} - -export function MobileSettingsPane({ - settings, - updateSettings -}: MobileSettingsPaneProps): React.JSX.Element { - const searchQuery = useAppStore((s) => s.settingsSearchQuery) - const showEnableSetting = - !settings.experimentalMobile || - matchesSettingsSearch(searchQuery, [getMobileEnableSearchEntry()]) - +export function MobileSettingsPane(): React.JSX.Element { return (
- {showEnableSetting ? ( - -
-
- -

- {translate( - 'auto.components.settings.MobileSettingsPane.c8491c17ef', - 'Control Orca from your phone by scanning a QR code. Beta / early preview - expect bugs and breaking changes. Get the iOS app from the' - )}{' '} - {' '} - {translate( - 'auto.components.settings.MobileSettingsPane.b0088412a1', - 'or the Android APK from' - )}{' '} - - . -

-
- -
-
- ) : null} + +

+ {translate( + 'auto.components.settings.MobileSettingsPane.c8491c17ef', + 'Control Orca from your phone by scanning a QR code. Get the iOS app from the' + )}{' '} + {' '} + {translate( + 'auto.components.settings.MobileSettingsPane.b0088412a1', + 'or the Android APK from' + )}{' '} + + . +

+
- {settings.experimentalMobile ? ( -
- -
- ) : null} +
+ +
) } diff --git a/src/renderer/src/components/settings/Settings.tsx b/src/renderer/src/components/settings/Settings.tsx index 5019c5f75..deecf5cb5 100644 --- a/src/renderer/src/components/settings/Settings.tsx +++ b/src/renderer/src/components/settings/Settings.tsx @@ -1513,9 +1513,7 @@ function Settings(): React.JSX.Element { )} searchEntries={getSectionSearchEntries('mobile')} > - {isSectionMounted('mobile') ? ( - - ) : null} + {isSectionMounted('mobile') ? : null} ) : null} diff --git a/src/renderer/src/components/settings/mobile-settings-search.ts b/src/renderer/src/components/settings/mobile-settings-search.ts index 25ef67e80..ae0a81954 100644 --- a/src/renderer/src/components/settings/mobile-settings-search.ts +++ b/src/renderer/src/components/settings/mobile-settings-search.ts @@ -4,7 +4,7 @@ import { translate } from '@/i18n/i18n' import { translateSearchKeyword } from './settings-search-keywords' import { createLocalizedCatalog } from '@/i18n/localized-catalog' -export const getMobileEnableSearchEntry = createLocalizedCatalog( +export const getMobileOverviewSearchEntry = createLocalizedCatalog( (): SettingsSearchEntry => ({ title: translate('auto.components.settings.mobile.settings.search.ffd52a96e4', 'Mobile'), description: translate( @@ -49,14 +49,11 @@ export const getMobileEnableSearchEntry = createLocalizedCatalog( 'auto.components.settings.mobile.settings.search.8d4ba0ef09', 'beta' ), - ...translateSearchKeyword( - 'auto.components.settings.mobile.settings.search.b730ff7049', - 'experimental' - ) + ...translateSearchKeyword('auto.components.settings.mobile.settings.search.b730ff7049', 'app') ] }) ) export const getMobileSettingsPaneSearchEntries = createLocalizedCatalog( - (): SettingsSearchEntry[] => [getMobileEnableSearchEntry(), ...getMobilePaneSearchEntries()] + (): SettingsSearchEntry[] => [getMobileOverviewSearchEntry(), ...getMobilePaneSearchEntries()] )