[APP-1684] Some contact import tweaks (#9555)

* Handle download link

* Improve NUX geo gating from #9549

* Fix alignment of phone code select

* Show full name

* Add gate to nux banner

* Add gate to settings screen

* Invert gate check in settings, whoops

(cherry picked from commit da87515d0a)
This commit is contained in:
Eric Bailey
2025-12-15 13:35:28 -06:00
parent 6056c6978d
commit 9b8e1ee5dd
11 changed files with 138 additions and 60 deletions
+21
View File
@@ -1,3 +1,24 @@
import {type AppBskyActorDefs} from '@atproto/api'
import {type useGate} from '#/lib/statsig/statsig'
import {type UsePreferencesQueryResponse} from '#/state/queries/preferences'
import {type SessionAccount} from '#/state/session'
import {type Geolocation} from '#/geolocation'
export type EnabledCheckProps = {
gate: ReturnType<typeof useGate>
currentAccount: SessionAccount
currentProfile: AppBskyActorDefs.ProfileViewDetailed
preferences: UsePreferencesQueryResponse
geolocation: Geolocation
}
export function createIsEnabledCheck(
cb: (props: EnabledCheckProps) => boolean,
) {
return cb
}
const ONE_DAY = 1000 * 60 * 60 * 24
export function isDaysOld(days: number, createdAt?: string) {