More useful block-state information in embeds (#1150)

* More useful block-state information in embeds

* Tune copy
This commit is contained in:
Paul Frazee 2023-08-10 16:25:11 -07:00 committed by GitHub
parent ac6f6eef66
commit e5b7a894a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 10 deletions

View file

@ -41,12 +41,23 @@ export function ContentHider({
onPress={() => {
if (!moderation.noOverride) {
setOverride(v => !v)
} else {
store.shell.openModal({
name: 'moderation-details',
context: 'content',
moderation,
})
}
}}
accessibilityRole="button"
accessibilityHint={override ? 'Hide the content' : 'Show the content'}
accessibilityLabel=""
style={[styles.cover, pal.viewLight]}>
style={[
styles.cover,
moderation.noOverride
? {borderWidth: 1, borderColor: pal.colors.borderDark}
: pal.viewLight,
]}>
<Pressable
onPress={() => {
store.shell.openModal({