pl-fe: Do not show repeated emoji reaction button

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-05 23:42:20 +02:00
parent ad948d7d4a
commit 85d6a3bdc6
3 changed files with 9 additions and 3 deletions

View file

@ -113,7 +113,7 @@ interface IStatusActionBar {
const StatusActionBar: React.FC<IStatusActionBar> = ({
status,
withLabels = false,
expandable = true,
expandable,
space = 'sm',
statusActionButtonTheme = 'default',
fromBookmarks = false,
@ -769,7 +769,7 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
/>
)}
{me && expandable && (features.emojiReacts) && (
{me && expandable && features.emojiReacts && (
<EmojiPickerDropdown
onPickEmoji={handlePickEmoji}
theme={statusActionButtonTheme}

View file

@ -459,7 +459,12 @@ const Status: React.FC<IStatus> = (props) => {
'pt-4': !actualStatus.emoji_reactions.length,
})}
>
<StatusActionBar status={actualStatus} rebloggedBy={isReblog ? status.account : undefined} fromBookmarks={fromBookmarks} />
<StatusActionBar
status={actualStatus}
rebloggedBy={isReblog ? status.account : undefined}
fromBookmarks={fromBookmarks}
expandable
/>
</div>
)}
</div>

View file

@ -321,6 +321,7 @@ const MediaModal: React.FC<MediaModalProps & BaseModalProps> = (props) => {
status={status}
space='md'
statusActionButtonTheme='inverse'
expandable
/>
</HStack>
)}