Fix `aria-label` on the Share button (#3159)

It had the same one as the Like button for some reason
zio/stable
Alice 2024-03-09 21:07:56 +00:00 committed by GitHub
parent 594958c6dc
commit f6685419d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -212,9 +212,7 @@ let PostCtrls = ({
style={[styles.btn]} style={[styles.btn]}
onPress={onShare} onPress={onShare}
accessibilityRole="button" accessibilityRole="button"
accessibilityLabel={`${ accessibilityLabel={`${_(msg`Share`)}`}
post.viewer?.like ? _(msg`Unlike`) : _(msg`Like`)
} (${post.likeCount} ${pluralize(post.likeCount || 0, 'like')})`}
accessibilityHint="" accessibilityHint=""
hitSlop={big ? HITSLOP_20 : HITSLOP_10}> hitSlop={big ? HITSLOP_20 : HITSLOP_10}>
<ArrowOutOfBox style={[defaultCtrlColor, styles.mt1]} width={22} /> <ArrowOutOfBox style={[defaultCtrlColor, styles.mt1]} width={22} />