UPdate nux name
This commit is contained in:
@@ -13,7 +13,7 @@ import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times'
|
||||
export function AgeAssuranceDismissableNotice({style}: ViewStyleProp & {}) {
|
||||
const {_} = useLingui()
|
||||
const {isLoaded, isUnderage, assurance} = useAgeInfo()
|
||||
const {nux} = useNux(Nux.AgeAssurancePrompt)
|
||||
const {nux} = useNux(Nux.AgeAssuranceDismissableNotice)
|
||||
const copy = useAgeAssuranceCopy()
|
||||
const {mutate: save, variables} = useSaveNux()
|
||||
const hidden = !!variables
|
||||
@@ -38,7 +38,7 @@ export function AgeAssuranceDismissableNotice({style}: ViewStyleProp & {}) {
|
||||
shape="round"
|
||||
onPress={() =>
|
||||
save({
|
||||
id: Nux.AgeAssurancePrompt,
|
||||
id: Nux.AgeAssuranceDismissableNotice,
|
||||
completed: true,
|
||||
data: undefined,
|
||||
})
|
||||
|
||||
@@ -7,7 +7,7 @@ export enum Nux {
|
||||
ExploreInterestsCard = 'ExploreInterestsCard',
|
||||
InitialVerificationAnnouncement = 'InitialVerificationAnnouncement',
|
||||
ActivitySubscriptions = 'ActivitySubscriptions',
|
||||
AgeAssurancePrompt = 'AgeAssurancePrompt',
|
||||
AgeAssuranceDismissableNotice = 'AgeAssuranceDismissableNotice',
|
||||
}
|
||||
|
||||
export const nuxNames = new Set(Object.values(Nux))
|
||||
@@ -30,7 +30,7 @@ export type AppNux = BaseNux<
|
||||
data: undefined
|
||||
}
|
||||
| {
|
||||
id: Nux.AgeAssurancePrompt
|
||||
id: Nux.AgeAssuranceDismissableNotice
|
||||
data: undefined
|
||||
}
|
||||
>
|
||||
@@ -40,5 +40,5 @@ export const NuxSchemas: Record<Nux, zod.ZodObject<any> | undefined> = {
|
||||
[Nux.ExploreInterestsCard]: undefined,
|
||||
[Nux.InitialVerificationAnnouncement]: undefined,
|
||||
[Nux.ActivitySubscriptions]: undefined,
|
||||
[Nux.AgeAssurancePrompt]: undefined,
|
||||
[Nux.AgeAssuranceDismissableNotice]: undefined,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user