isLoaded -> isReady
This commit is contained in:
@@ -20,9 +20,9 @@ import {createStaticClick, InlineLinkText} from '#/components/Link'
|
||||
import {Text} from '#/components/Typography'
|
||||
|
||||
export function AgeAssuranceAccountCard({style}: ViewStyleProp & {}) {
|
||||
const {isLoaded, isAgeRestricted, isUnderage} = useAgeInfo()
|
||||
const {isReady, isAgeRestricted, isUnderage} = useAgeInfo()
|
||||
|
||||
if (!isLoaded) return null
|
||||
if (!isReady) return null
|
||||
if (isUnderage) return null
|
||||
if (!isAgeRestricted) return null
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@ export function AgeAssuranceAdmonition({
|
||||
style,
|
||||
}: ViewStyleProp & {children: React.ReactNode}) {
|
||||
const control = useDialogControl()
|
||||
const {isLoaded, isUnderage, isAgeRestricted} = useAgeInfo()
|
||||
const {isReady, isUnderage, isAgeRestricted} = useAgeInfo()
|
||||
|
||||
if (!isLoaded) return null
|
||||
if (!isReady) return null
|
||||
if (isUnderage) return null
|
||||
if (!isAgeRestricted) return null
|
||||
|
||||
|
||||
@@ -12,13 +12,13 @@ import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
|
||||
|
||||
export function AgeAssuranceDismissableNotice({style}: ViewStyleProp & {}) {
|
||||
const {_} = useLingui()
|
||||
const {isLoaded, isUnderage, isAgeRestricted, assurance} = useAgeInfo()
|
||||
const {isReady, isUnderage, isAgeRestricted, assurance} = useAgeInfo()
|
||||
const {nux} = useNux(Nux.AgeAssuranceDismissableNotice)
|
||||
const copy = useAgeAssuranceCopy()
|
||||
const {mutate: save, variables} = useSaveNux()
|
||||
const hidden = !!variables
|
||||
|
||||
if (!isLoaded) return null
|
||||
if (!isReady) return null
|
||||
if (isUnderage) return null
|
||||
if (!isAgeRestricted) return null
|
||||
if (assurance.lastInitiatedAt) return null
|
||||
|
||||
@@ -24,9 +24,9 @@ export function AgeRestrictedScreen({
|
||||
}) {
|
||||
const {_} = useLingui()
|
||||
const copy = useAgeAssuranceCopy()
|
||||
const {isLoaded, isAgeRestricted} = useAgeInfo()
|
||||
const {isReady, isAgeRestricted} = useAgeInfo()
|
||||
|
||||
if (!isLoaded) {
|
||||
if (!isReady) {
|
||||
return (
|
||||
<Layout.Screen>
|
||||
<Layout.Header.Outer>
|
||||
|
||||
Reference in New Issue
Block a user