Move /platform/detection vars into /env (#9707)
* Add platform vars to env * Replace /platform/detection with /env
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
||||
type NativeStackScreenProps,
|
||||
} from '#/lib/routes/types'
|
||||
import {logger} from '#/logger'
|
||||
import {isIOS} from '#/platform/detection'
|
||||
import {useIsBirthdateUpdateAllowed} from '#/state/birthdate'
|
||||
import {
|
||||
useMyLabelersQuery,
|
||||
@@ -45,6 +44,7 @@ import {Loader} from '#/components/Loader'
|
||||
import {GlobalLabelPreference} from '#/components/moderation/LabelPreference'
|
||||
import {Text} from '#/components/Typography'
|
||||
import {useAgeAssurance} from '#/ageAssurance'
|
||||
import {IS_IOS} from '#/env'
|
||||
|
||||
function ErrorState({error}: {error: string}) {
|
||||
const t = useTheme()
|
||||
@@ -182,7 +182,7 @@ export function ModerationScreenInner({
|
||||
(optimisticAdultContent && optimisticAdultContent.enabled) ||
|
||||
(!optimisticAdultContent && preferences.moderationPrefs.adultContentEnabled)
|
||||
)
|
||||
const adultContentUIDisabledOnIOS = isIOS && !adultContentEnabled
|
||||
const adultContentUIDisabledOnIOS = IS_IOS && !adultContentEnabled
|
||||
let adultContentUIDisabled = adultContentUIDisabledOnIOS
|
||||
|
||||
if (aa.flags.adultContentDisabled) {
|
||||
|
||||
Reference in New Issue
Block a user