From 7dcd435ae4f6f5aa371dc85d3bceb645443658ef Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 5 Dec 2025 13:50:08 +0200 Subject: [PATCH] update geolocation hook --- src/components/contacts/screens/PhoneInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/contacts/screens/PhoneInput.tsx b/src/components/contacts/screens/PhoneInput.tsx index 295858eaf8..83e533b1de 100644 --- a/src/components/contacts/screens/PhoneInput.tsx +++ b/src/components/contacts/screens/PhoneInput.tsx @@ -12,7 +12,6 @@ import { } from '#/lib/international-telephone-codes' import {cleanError, isNetworkError} from '#/lib/strings/errors' import {logger} from '#/logger' -import {useGeolocationStatus} from '#/state/geolocation' import {android, atoms as a, tokens, useGutters, useTheme} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import * as TextField from '#/components/forms/TextField' @@ -21,6 +20,7 @@ import * as Layout from '#/components/Layout' import {InlineLinkText} from '#/components/Link' import {Loader} from '#/components/Loader' import {Text} from '#/components/Typography' +import {useGeolocation} from '#/geolocation' import { getCountryCodeFromPastedNumber, processPhoneNumber, @@ -40,7 +40,7 @@ export function PhoneInput({ }) { const {_} = useLingui() const t = useTheme() - const {location} = useGeolocationStatus() + const location = useGeolocation() const [countryCode, setCountryCode] = useState( () => state.phoneCountryCode ?? getDefaultCountry(location), )