@@ -24,7 +24,7 @@ import { deriveProjectGroupLabel } from "@t3tools/client-runtime/state/project-g
2424import { useSafeAreaInsets } from "react-native-safe-area-context" ;
2525
2626import { hasCloudPublicConfig } from "../cloud/publicConfig" ;
27- import { useAdaptiveWorkspaceLayout } from "../layout/AdaptiveWorkspaceLayout " ;
27+ import { useAdaptiveWorkspaceLayout } from "../layout/adaptive-workspace-context " ;
2828import { useSavedRemoteConnections } from "../../state/use-remote-environment-registry" ;
2929import { SettingsRow } from "./components/SettingsRow" ;
3030import { SettingsSection , SettingsSidebarContext } from "./components/SettingsSection" ;
@@ -39,8 +39,6 @@ import { filterSettingsSections } from "./settings-search";
3939import { NativePrimaryColumnContext } from "../../native/v5-workspace-context" ;
4040
4141export function SettingsRouteScreen ( ) {
42- const surface = useWorkspaceSurface ( ) ;
43- const workspace = useWorkspaceTabs ( ) ;
4442 const { layout } = useAdaptiveWorkspaceLayout ( ) ;
4543 const inSidebar = use ( NativePrimaryColumnContext ) !== null && layout . usesSplitView ;
4644 // The page open beside the list: the route right above the Settings tab's route. While
@@ -52,6 +50,17 @@ export function SettingsRouteScreen() {
5250 ? rememberedSettingsPage ( currentWorkspaceSelections ( ) )
5351 : ( state . routes [ list + 1 ] ?. name ?? null ) ;
5452 } ) ;
53+ return < SettingsListScreen sidebar = { inSidebar } selected = { selected } /> ;
54+ }
55+
56+ export function SettingsListScreen ( props : {
57+ readonly sidebar : boolean ;
58+ readonly selected : string | null ;
59+ } ) {
60+ const surface = useWorkspaceSurface ( ) ;
61+ const workspace = useWorkspaceTabs ( ) ;
62+ const inSidebar = props . sidebar ;
63+ const selected = props . selected ;
5564 const sidebar = useMemo ( ( ) => ( inSidebar ? { selected } : null ) , [ inSidebar , selected ] ) ;
5665 const content = hasCloudPublicConfig ( ) ? (
5766 < ConfiguredSettingsRouteScreen />
@@ -66,6 +75,7 @@ export function SettingsRouteScreen() {
6675 { Platform . OS === "android" ? (
6776 < SettingsScreen
6877 title = "Settings"
78+ workspaceRoot = { inSidebar }
6979 trailing = { < AndroidSettingsEnvironmentFilter /> }
7080 search = {
7181 workspace
0 commit comments