From 24f379ac3657087354895573193871907dc087c9 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 9 Jun 2025 21:30:33 +0300 Subject: [PATCH] Threads v2 tweaks (#8467) * fix error screen collapsing * use personx icon for blocked posts --- .../PostThread/components/ThreadError.tsx | 2 +- .../components/ThreadItemPostTombstone.tsx | 22 ++++++------------- 2 files changed, 8 insertions(+), 16 deletions(-) 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}