|
1 | | -import { useAuth, useUser, useUserProfileModal } from "@clerk/expo"; |
| 1 | +import { useAuth, useUser } from "@clerk/expo"; |
2 | 2 | import * as Notifications from "expo-notifications"; |
3 | 3 | import { Link, Stack, useRouter } from "expo-router"; |
4 | 4 | import { SymbolView } from "expo-symbols"; |
@@ -68,7 +68,6 @@ function ConfiguredSettingsRouteScreen() { |
68 | 68 | const { push } = useRouter(); |
69 | 69 | const { getToken, isLoaded, isSignedIn } = useAuth({ treatPendingAsSignedOut: false }); |
70 | 70 | const { user } = useUser(); |
71 | | - const { isAvailable: isUserProfileModalAvailable, presentUserProfile } = useUserProfileModal(); |
72 | 71 | const { savedConnectionsById } = useRemoteEnvironmentState(); |
73 | 72 | const [notificationStatus, setNotificationStatus] = useState<NotificationStatus>("checking"); |
74 | 73 | const [liveActivityStatus, setLiveActivityStatus] = useState<LiveActivityStatus>("checking"); |
@@ -266,15 +265,11 @@ function ConfiguredSettingsRouteScreen() { |
266 | 265 | push("/settings/waitlist"); |
267 | 266 | return; |
268 | 267 | } |
269 | | - if (isUserProfileModalAvailable) { |
270 | | - void presentUserProfile(); |
271 | | - return; |
272 | | - } |
273 | 268 | Alert.alert( |
274 | 269 | "T3 Cloud unavailable", |
275 | 270 | "Native T3 Cloud account management is not available in this build.", |
276 | 271 | ); |
277 | | - }, [isLoaded, isSignedIn, isUserProfileModalAvailable, presentUserProfile, push]); |
| 272 | + }, [isLoaded, isSignedIn, push]); |
278 | 273 |
|
279 | 274 | return ( |
280 | 275 | <View collapsable={false} className="flex-1 bg-sheet"> |
|
0 commit comments