Align tombstone with optimistic deletion state
This commit is contained in:
@@ -93,7 +93,6 @@ function ThreadItemPostDeleted({
|
|||||||
style={[
|
style={[
|
||||||
a.flex_row,
|
a.flex_row,
|
||||||
a.align_center,
|
a.align_center,
|
||||||
a.gap_sm,
|
|
||||||
a.py_md,
|
a.py_md,
|
||||||
a.rounded_sm,
|
a.rounded_sm,
|
||||||
t.atoms.bg_contrast_25,
|
t.atoms.bg_contrast_25,
|
||||||
@@ -107,10 +106,10 @@ function ThreadItemPostDeleted({
|
|||||||
width: LINEAR_AVI_WIDTH,
|
width: LINEAR_AVI_WIDTH,
|
||||||
},
|
},
|
||||||
]}>
|
]}>
|
||||||
<TrashIcon style={[t.atoms.text]} />
|
<TrashIcon style={[t.atoms.text_contrast_medium]} />
|
||||||
</View>
|
</View>
|
||||||
<Text style={[t.atoms.text_contrast_medium, a.mt_2xs]}>
|
<Text style={[a.text_md, a.font_bold, t.atoms.text_contrast_medium]}>
|
||||||
<Trans>This post has been deleted.</Trans>
|
<Trans>Post has been deleted</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
|
|||||||
@@ -19,10 +19,10 @@ export function ThreadItemPostTombstone({type}: ThreadItemPostTombstoneProps) {
|
|||||||
const {copy, Icon} = useMemo(() => {
|
const {copy, Icon} = useMemo(() => {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'blocked':
|
case 'blocked':
|
||||||
return {copy: _(msg`Post blocked.`), Icon: PersonXIcon}
|
return {copy: _(msg`Post blocked`), Icon: PersonXIcon}
|
||||||
case 'not-found':
|
case 'not-found':
|
||||||
default:
|
default:
|
||||||
return {copy: _(msg`Post not found.`), Icon: TrashIcon}
|
return {copy: _(msg`Post not found`), Icon: TrashIcon}
|
||||||
}
|
}
|
||||||
}, [_, type])
|
}, [_, type])
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ export function ThreadItemPostTombstone({type}: ThreadItemPostTombstoneProps) {
|
|||||||
<View style={[a.flex_row, a.justify_center, {width: LINEAR_AVI_WIDTH}]}>
|
<View style={[a.flex_row, a.justify_center, {width: LINEAR_AVI_WIDTH}]}>
|
||||||
<Icon style={[t.atoms.text_contrast_medium]} />
|
<Icon style={[t.atoms.text_contrast_medium]} />
|
||||||
</View>
|
</View>
|
||||||
<Text style={[a.font_bold, a.text_md, t.atoms.text_contrast_medium]}>
|
<Text style={[a.text_md, a.font_bold, t.atoms.text_contrast_medium]}>
|
||||||
{copy}
|
{copy}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ function ThreadItemTreePostDeleted({
|
|||||||
]}>
|
]}>
|
||||||
<TrashIcon style={[t.atoms.text]} width={14} />
|
<TrashIcon style={[t.atoms.text]} width={14} />
|
||||||
<Text style={[t.atoms.text_contrast_medium, a.mt_2xs]}>
|
<Text style={[t.atoms.text_contrast_medium, a.mt_2xs]}>
|
||||||
<Trans>This post has been deleted.</Trans>
|
<Trans>Post has been deleted</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
{item.ui.isLastChild && !item.ui.precedesChildReadMore && (
|
{item.ui.isLastChild && !item.ui.precedesChildReadMore && (
|
||||||
|
|||||||
Reference in New Issue
Block a user