This commit is contained in:
vineyardbovines
2026-05-07 16:54:57 -04:00
parent 075a879b6f
commit 04898a8cfb
@@ -99,12 +99,7 @@ function Inner({style}: ViewStyleProp & {}) {
<View style={style}>
<View
style={[
a.p_lg,
a.rounded_md,
a.border,
t.atoms.border_contrast_low,
]}>
style={[a.p_lg, a.rounded_md, a.border, t.atoms.border_contrast_low]}>
<View
style={[
a.flex_row,
@@ -120,17 +115,14 @@ function Inner({style}: ViewStyleProp & {}) {
</View>
<View style={[a.pb_md, a.gap_sm]}>
<Text style={[a.text_sm, a.leading_snug]}>
{copy.notice}
</Text>
<Text style={[a.text_sm, a.leading_snug]}>{copy.notice}</Text>
{hasCompletedFlow && (
<Text style={[a.text_sm, a.leading_snug]}>
<Trans>
If you are 18 years of age or older and want
to try again, click the button below and use
a different verification method if one is
available in your region. If you have
questions or concerns,{' '}
If you are 18 years of age or older and want to try again,
click the button below and use a different verification method
if one is available in your region. If you have questions or
concerns,{' '}
<InlineLinkText
label={l`Contact our support team`}
{...createStaticClick(() => {
@@ -148,16 +140,13 @@ function Inner({style}: ViewStyleProp & {}) {
{isBlocked ? (
<Admonition type="warning">
<Trans>
You are currently unable to access Bluesky's Age
Assurance flow. Please{' '}
You are currently unable to access Bluesky's Age Assurance flow.
Please{' '}
<InlineLinkText
label={l`Contact our moderation team`}
{...createStaticClick(() => {
appealControl.open()
ax.metric(
'ageAssurance:appealDialogOpen',
{},
)
ax.metric('ageAssurance:appealDialogOpen', {})
})}>
contact our moderation team
</InlineLinkText>{' '}
@@ -183,18 +172,12 @@ function Inner({style}: ViewStyleProp & {}) {
label={l`Verify now`}
size="small"
variant="solid"
color={
hasInitiated ? 'secondary' : 'primary'
}
color={hasInitiated ? 'secondary' : 'primary'}
onPress={() => {
control.open()
ax.metric(
'ageAssurance:initDialogOpen',
{
hasInitiatedPreviously:
hasInitiated,
},
)
ax.metric('ageAssurance:initDialogOpen', {
hasInitiatedPreviously: hasInitiated,
})
}}>
<ButtonText>
{hasInitiated ? (
@@ -207,36 +190,21 @@ function Inner({style}: ViewStyleProp & {}) {
{lastInitiatedAt && timeAgo && diff ? (
<Text
style={[
a.text_sm,
a.italic,
t.atoms.text_contrast_medium,
]}
style={[a.text_sm, a.italic, t.atoms.text_contrast_medium]}
title={i18n.date(lastInitiatedAt, {
dateStyle: 'medium',
timeStyle: 'medium',
})}>
{diff.value === 0 ? (
<Trans>
Last initiated just now
</Trans>
<Trans>Last initiated just now</Trans>
) : (
<Trans>
Last initiated {timeAgo} ago
</Trans>
<Trans>Last initiated {timeAgo} ago</Trans>
)}
</Text>
) : (
<Text
style={[
a.text_sm,
a.italic,
t.atoms.text_contrast_medium,
]}>
<Trans>
Age assurance only takes a few
minutes
</Trans>
style={[a.text_sm, a.italic, t.atoms.text_contrast_medium]}>
<Trans>Age assurance only takes a few minutes</Trans>
</Text>
)}
</View>
@@ -266,9 +234,7 @@ function RegionNotice() {
<DeviceLocationRequestDialog
control={locationControl}
onLocationAcquired={props => {
const access = computeAgeAssuranceRegionAccess(
props.geolocation,
)
const access = computeAgeAssuranceRegionAccess(props.geolocation)
if (access !== aa.Access.Full) {
props.disableDialogAction()
props.setDialogError(
@@ -292,20 +258,14 @@ function RegionNotice() {
{isGPS ? (
<Trans>
Based on your device's location, we think you're in{' '}
<Text style={[a.text_sm, a.font_bold]}>
{region}
</Text>
. This estimate may be inaccurate if you're using a
VPN.
<Text style={[a.text_sm, a.font_bold]}>{region}</Text>. This
estimate may be inaccurate if you're using a VPN.
</Trans>
) : (
<Trans>
Based on your network, we think you're in{' '}
<Text style={[a.text_sm, a.font_bold]}>
{region}
</Text>
. This estimate may be inaccurate if you're using a
VPN.
<Text style={[a.text_sm, a.font_bold]}>{region}</Text>. This
estimate may be inaccurate if you're using a VPN.
</Trans>
)}
</Text>