From f5e588fbc4ed95b949de3130be2237033d2a5cee Mon Sep 17 00:00:00 2001 From: Yen Colon Date: Tue, 19 Jan 2021 23:44:15 -0400 Subject: [PATCH] improving part reactions ui --- .../components/PartReactions/PartReactions.js | 70 ++++++++++--------- .../PartReactionsCell/PartReactionsCell.js | 2 +- 2 files changed, 39 insertions(+), 33 deletions(-) diff --git a/web/src/components/PartReactions/PartReactions.js b/web/src/components/PartReactions/PartReactions.js index d47e878..37e343a 100644 --- a/web/src/components/PartReactions/PartReactions.js +++ b/web/src/components/PartReactions/PartReactions.js @@ -13,32 +13,35 @@ const PartReactions = ({ reactions }) => { } return ( - <> -
- - {emotes.map((emote, i) => ( - - ))} - -
+
+ {reactionPart.emote} +
+ + ))} + + ) } diff --git a/web/src/components/PartReactionsCell/PartReactionsCell.js b/web/src/components/PartReactionsCell/PartReactionsCell.js index d0f4bc9..2cf4c0c 100644 --- a/web/src/components/PartReactionsCell/PartReactionsCell.js +++ b/web/src/components/PartReactionsCell/PartReactionsCell.js @@ -22,5 +22,5 @@ export const Empty = () =>
Empty
export const Failure = ({ error }) =>
Error: {error.message}
export const Success = ({ partReactionsByPartId }) => { - return //JSON.stringify(partReactions) + return }