From 812aaab83fd910b5a95f51324134151d9cf3f523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Tue, 20 Aug 2024 09:59:04 +0200 Subject: [PATCH] Conditionally center new post button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/components/thumb-navigation.tsx | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/components/thumb-navigation.tsx b/src/components/thumb-navigation.tsx index 943684408d..0aeb38cbef 100644 --- a/src/components/thumb-navigation.tsx +++ b/src/components/thumb-navigation.tsx @@ -65,6 +65,15 @@ const ThumbNavigation: React.FC = (): JSX.Element => { return null; }; + const composeButton = ( + + ); + return (
- )} + {account && (features.chats || features.conversations) && composeButton}
); };