diff --git a/src/screens/PostThread/components/ThreadError.tsx b/src/screens/PostThread/components/ThreadError.tsx index fdda4ebc9c..e1ca23cf97 100644 --- a/src/screens/PostThread/components/ThreadError.tsx +++ b/src/screens/PostThread/components/ThreadError.tsx @@ -40,7 +40,7 @@ export function ThreadError({ { + const {copy, Icon} = useMemo(() => { switch (type) { case 'blocked': - return _(msg`Post blocked.`) + return {copy: _(msg`Post blocked.`), Icon: PersonXIcon} case 'not-found': default: - return _(msg`Post not found.`) + return {copy: _(msg`Post not found.`), Icon: TrashIcon} } }, [_, type]) @@ -40,19 +41,10 @@ export function ThreadItemPostTombstone({type}: ThreadItemPostTombstoneProps) { a.align_center, a.rounded_sm, t.atoms.bg_contrast_25, - { - paddingVertical: OUTER_SPACE / 1.2, - }, + {paddingVertical: OUTER_SPACE / 1.2}, ]}> - - + + {copy}