@@ -8,6 +8,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
88
99import { reportAtomCommandResult , settlePromise } from "@t3tools/client-runtime/state/runtime" ;
1010import { AndroidSheetHeader } from "../../components/AndroidScreenHeader" ;
11+ import { MaterialScreenContent } from "../../components/MaterialScreenContent" ;
1112import { AppText as Text } from "../../components/AppText" ;
1213import { useRemoteConnections } from "../../state/use-remote-environment-registry" ;
1314import { CloudEnvironmentRows } from "../connection/CloudEnvironmentRows" ;
@@ -86,6 +87,7 @@ function ConfiguredConnectOnboardingRouteScreen() {
8687 < View collapsable = { false } className = "flex-1 bg-sheet" >
8788 { Platform . OS === "android" ? (
8889 < AndroidSheetHeader
90+ hideBottomBorder
8991 title = "Set up T3 Connect"
9092 actions = { [
9193 {
@@ -103,50 +105,52 @@ function ConfiguredConnectOnboardingRouteScreen() {
103105 < NativeHeaderToolbar . Button icon = "xmark" onPress = { handleClose } separateBackground />
104106 </ NativeHeaderToolbar >
105107 ) }
106- < ScrollView
107- nestedScrollEnabled
108- alwaysBounceVertical
109- contentInsetAdjustmentBehavior = "automatic"
110- showsVerticalScrollIndicator = { false }
111- className = "flex-1"
112- contentInset = { { bottom : Math . max ( insets . bottom , 18 ) + 18 } }
113- contentContainerStyle = { {
114- gap : 16 ,
115- paddingHorizontal : 20 ,
116- paddingTop : 16 ,
117- } }
118- refreshControl = {
119- Platform . OS === "ios" ? (
120- < RefreshControl refreshing = { isRefreshing } onRefresh = { handleRefresh } />
121- ) : undefined
122- }
123- >
124- { isSignedIn ? (
125- < CloudEnvironmentRows
126- connectedCloudEnvironments = { connectedCloudEnvironments }
127- onSetEnvironmentEnabled = { onSetEnvironmentEnabled }
128- onRemoveEnvironment = { onRemoveEnvironmentPress }
129- showHeader = { false }
130- />
131- ) : (
132- < View collapsable = { false } className = "rounded-[24px] bg-grouped-card p-5" >
133- < Text className = "text-sm leading-normal text-foreground-muted" >
134- Sign in to your T3 account to set up T3 Connect.
135- </ Text >
136- </ View >
137- ) }
108+ < MaterialScreenContent >
109+ < ScrollView
110+ nestedScrollEnabled
111+ alwaysBounceVertical
112+ contentInsetAdjustmentBehavior = "automatic"
113+ showsVerticalScrollIndicator = { false }
114+ className = "flex-1"
115+ contentInset = { { bottom : Math . max ( insets . bottom , 18 ) + 18 } }
116+ contentContainerStyle = { {
117+ gap : 16 ,
118+ paddingHorizontal : 20 ,
119+ paddingTop : 16 ,
120+ } }
121+ refreshControl = {
122+ Platform . OS === "ios" ? (
123+ < RefreshControl refreshing = { isRefreshing } onRefresh = { handleRefresh } />
124+ ) : undefined
125+ }
126+ >
127+ { isSignedIn ? (
128+ < CloudEnvironmentRows
129+ connectedCloudEnvironments = { connectedCloudEnvironments }
130+ onSetEnvironmentEnabled = { onSetEnvironmentEnabled }
131+ onRemoveEnvironment = { onRemoveEnvironmentPress }
132+ showHeader = { false }
133+ />
134+ ) : (
135+ < View collapsable = { false } className = "rounded-[24px] bg-grouped-card p-5" >
136+ < Text className = "text-sm leading-normal text-foreground-muted" >
137+ Sign in to your T3 account to set up T3 Connect.
138+ </ Text >
139+ </ View >
140+ ) }
138141
139- { userId ? (
140- < Pressable
141- accessibilityRole = "button"
142- hitSlop = { 8 }
143- onPress = { handleDontShowAgain }
144- className = "items-center py-1 active:opacity-70"
145- >
146- < Text className = "text-xs text-foreground-muted" > { "Don't show this again" } </ Text >
147- </ Pressable >
148- ) : null }
149- </ ScrollView >
142+ { userId ? (
143+ < Pressable
144+ accessibilityRole = "button"
145+ hitSlop = { 8 }
146+ onPress = { handleDontShowAgain }
147+ className = "items-center py-1 active:opacity-70"
148+ >
149+ < Text className = "text-xs text-foreground-muted" > { "Don't show this again" } </ Text >
150+ </ Pressable >
151+ ) : null }
152+ </ ScrollView >
153+ </ MaterialScreenContent >
150154 </ View >
151155 ) ;
152156}
0 commit comments