pl-fe: Do not show repeated emoji reaction button
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
ad948d7d4a
commit
85d6a3bdc6
3 changed files with 9 additions and 3 deletions
|
@ -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}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -321,6 +321,7 @@ const MediaModal: React.FC<MediaModalProps & BaseModalProps> = (props) => {
|
|||
status={status}
|
||||
space='md'
|
||||
statusActionButtonTheme='inverse'
|
||||
expandable
|
||||
/>
|
||||
</HStack>
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue