diff --git a/packages/pl-fe/src/components/status-action-bar.tsx b/packages/pl-fe/src/components/status-action-bar.tsx index 5a16e02cd..8691ed0bb 100644 --- a/packages/pl-fe/src/components/status-action-bar.tsx +++ b/packages/pl-fe/src/components/status-action-bar.tsx @@ -756,7 +756,10 @@ const StatusActionBar: React.FC = ({ )} {me && expandable && (features.emojiReacts || features.emojiReactsMastodon) && ( - + )} {canShare && ( diff --git a/packages/pl-fe/src/features/emoji/containers/emoji-picker-dropdown-container.tsx b/packages/pl-fe/src/features/emoji/containers/emoji-picker-dropdown-container.tsx index 462d4ea49..31ecb26fb 100644 --- a/packages/pl-fe/src/features/emoji/containers/emoji-picker-dropdown-container.tsx +++ b/packages/pl-fe/src/features/emoji/containers/emoji-picker-dropdown-container.tsx @@ -1,4 +1,5 @@ import { useFloating, shift, flip } from '@floating-ui/react'; +import clsx from 'clsx'; import React, { KeyboardEvent, useState } from 'react'; import { defineMessages, useIntl } from 'react-intl'; @@ -11,9 +12,12 @@ const messages = defineMessages({ emoji: { id: 'emoji_button.label', defaultMessage: 'Insert emoji' }, }); -const EmojiPickerDropdownContainer = ( - { children, ...props }: Pick & { children?: JSX.Element }, -) => { +interface IEmojiPickerDropdownContainer extends Pick { + children?: JSX.Element; + theme?: 'default' | 'inverse'; +} + +const EmojiPickerDropdownContainer: React.FC = ({ theme = 'default', children, ...props }) => { const intl = useIntl(); const title = intl.formatMessage(messages.emoji); const [visible, setVisible] = useState(false); @@ -50,7 +54,10 @@ const EmojiPickerDropdownContainer = ( }) ) : (