From 85d6a3bdc69138e5f5bee1b2a2346cfefac6a42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sat, 5 Oct 2024 23:42:20 +0200 Subject: [PATCH] pl-fe: Do not show repeated emoji reaction button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/components/status-action-bar.tsx | 4 ++-- packages/pl-fe/src/components/status.tsx | 7 ++++++- .../src/features/ui/components/modals/media-modal.tsx | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/pl-fe/src/components/status-action-bar.tsx b/packages/pl-fe/src/components/status-action-bar.tsx index add2c0267..1b478cce0 100644 --- a/packages/pl-fe/src/components/status-action-bar.tsx +++ b/packages/pl-fe/src/components/status-action-bar.tsx @@ -113,7 +113,7 @@ interface IStatusActionBar { const StatusActionBar: React.FC = ({ status, withLabels = false, - expandable = true, + expandable, space = 'sm', statusActionButtonTheme = 'default', fromBookmarks = false, @@ -769,7 +769,7 @@ const StatusActionBar: React.FC = ({ /> )} - {me && expandable && (features.emojiReacts) && ( + {me && expandable && features.emojiReacts && ( = (props) => { 'pt-4': !actualStatus.emoji_reactions.length, })} > - + )} diff --git a/packages/pl-fe/src/features/ui/components/modals/media-modal.tsx b/packages/pl-fe/src/features/ui/components/modals/media-modal.tsx index 481877630..4af22505c 100644 --- a/packages/pl-fe/src/features/ui/components/modals/media-modal.tsx +++ b/packages/pl-fe/src/features/ui/components/modals/media-modal.tsx @@ -321,6 +321,7 @@ const MediaModal: React.FC = (props) => { status={status} space='md' statusActionButtonTheme='inverse' + expandable /> )}