From 29dcfbb5356a3e64745bf7ea2ac23fd15f206ed4 Mon Sep 17 00:00:00 2001 From: Daniela Henkel Date: Fri, 5 Sep 2025 22:35:03 +0200 Subject: [PATCH] remove location stuff for now --- src/screens/Settings/DeerSettings.tsx | 83 --------------------------- 1 file changed, 83 deletions(-) diff --git a/src/screens/Settings/DeerSettings.tsx b/src/screens/Settings/DeerSettings.tsx index d1da73763..e9ebed269 100644 --- a/src/screens/Settings/DeerSettings.tsx +++ b/src/screens/Settings/DeerSettings.tsx @@ -14,7 +14,6 @@ import { useGatesCache, } from '#/lib/statsig/statsig' import {isWeb} from '#/platform/detection' -import {setGeolocation, useGeolocation} from '#/state/geolocation' import * as persisted from '#/state/persisted' import {useGoLinksEnabled, useSetGoLinksEnabled} from '#/state/preferences' import { @@ -69,7 +68,6 @@ import * as Toggle from '#/components/forms/Toggle' import {Atom_Stroke2_Corner0_Rounded as DeerIcon} from '#/components/icons/Atom' import {Bell_Stroke2_Corner0_Rounded as BellIcon} from '#/components/icons/Bell' import {Eye_Stroke2_Corner0_Rounded as VisibilityIcon} from '#/components/icons/Eye' -import {Earth_Stroke2_Corner2_Rounded as GlobeIcon} from '#/components/icons/Globe' import {Lab_Stroke2_Corner0_Rounded as BeakerIcon} from '#/components/icons/Lab' import {PaintRoller_Stroke2_Corner2_Rounded as PaintRollerIcon} from '#/components/icons/PaintRoller' import {RaisingHand4Finger_Stroke2_Corner0_Rounded as RaisingHandIcon} from '#/components/icons/RaisingHand' @@ -81,71 +79,6 @@ import {SearchProfileCard} from '../Search/components/SearchProfileCard' type Props = NativeStackScreenProps -function GeolocationSettingsDialog({ - control, -}: { - control: Dialog.DialogControlProps -}) { - const pal = usePalette('default') - const {_} = useLingui() - - const [hasChanged, setHasChanged] = useState(false) - const [countryCode, setCountryCode] = useState('') - - const submit = () => { - setGeolocation({countryCode}) - control.close() - } - - return ( - - - - - - Geolocation ISO 3166-1 Code - - - - - { - setCountryCode(value.toUpperCase()) - setHasChanged(true) - }} - maxLength={2} - placeholder="BR" - placeholderTextColor={pal.colors.textLight} - onSubmitEditing={submit} - accessibilityHint={_( - msg`Input 2 letter ISO 3166-1 country code to use as location`, - )} - /> - - - - - - - - - - ) -} - function ConstellationInstanceDialog({ control, }: { @@ -270,9 +203,6 @@ export function DeerSettingsScreen({}: Props) { const hideFollowNotifications = useHideFollowNotifications() const setHideFollowNotifications = useSetHideFollowNotifications() - const location = useGeolocation() - const setLocationControl = Dialog.useDialogControl() - const constellationInstance = useConstellationInstance() const setConstellationInstanceControl = Dialog.useDialogControl() @@ -423,18 +353,6 @@ export function DeerSettingsScreen({}: Props) { - - - - {`ISO 3166-1 Location (currently ${ - location.geolocation?.countryCode ?? '?' - })`} - - setLocationControl.open()} - /> - @@ -602,7 +520,6 @@ export function DeerSettingsScreen({}: Props) { - ) -- 2.51.2