exposing who likes a part

This commit is contained in:
Yen Colon
2021-01-19 23:46:36 -04:00
parent f5e588fbc4
commit 02032c2804
2 changed files with 27 additions and 11 deletions

View File

@@ -20,6 +20,7 @@ const EmojiReaction = ({
emotes,
userEmotes,
onEmote = () => {},
onShowPartReactions,
className,
}) => {
const { currentUser } = useAuth()
@@ -107,17 +108,20 @@ const EmojiReaction = ({
horizontal: 'left',
}}
>
<div className="p-2 pr-3 flex">
{emojiMenu.map((emoji, i) => (
<button
className="p-2"
style={textShadow}
key={`${emoji}-${i}}`}
onClick={() => handleEmojiClick(emoji)}
>
{emoji}
</button>
))}
<div className="p-2 pr-3 flex flex-col">
<div className="inline-flex">
{emojiMenu.map((emoji, i) => (
<button
className="p-2"
style={textShadow}
key={`${emoji}-${i}}`}
onClick={() => handleEmojiClick(emoji)}
>
{emoji}
</button>
))}
</div>
<button onClick={onShowPartReactions}>View Reactions</button>
</div>
</Popover>
</>