diff --git a/native/chat/inline-engagement.react.js b/native/chat/inline-engagement.react.js --- a/native/chat/inline-engagement.react.js +++ b/native/chat/inline-engagement.react.js @@ -30,16 +30,16 @@ type Props = { +sidebarInfo: ?ThreadInfo, - +reactions?: ReactionInfo, + +reactions: ReactionInfo, +disabled?: boolean, +positioning?: 'left' | 'right' | 'center', +label?: ?string, }; function InlineEngagement(props: Props): React.Node { const { - disabled = false, - reactions, sidebarInfo, + reactions, + disabled = false, positioning, label, } = props; @@ -86,7 +86,7 @@ const sidebarStyle = React.useMemo(() => { const style = [styles.sidebar]; - if (!reactions || Object.keys(reactions).length === 0) { + if (Object.keys(reactions).length === 0) { return style; } @@ -153,7 +153,7 @@ ]); const reactionList = React.useMemo(() => { - if (!reactions || Object.keys(reactions).length === 0) { + if (Object.keys(reactions).length === 0) { return null; } @@ -362,6 +362,7 @@