diff --git a/web/src/components/EmojiReaction/EmojiReaction.js b/web/src/components/EmojiReaction/EmojiReaction.js index 83fb7b3..0f2d162 100644 --- a/web/src/components/EmojiReaction/EmojiReaction.js +++ b/web/src/components/EmojiReaction/EmojiReaction.js @@ -38,12 +38,15 @@ const EmojiReaction = ({ emotes, callback = () => {} }) => { return [
- - - + +
+ +
+
+
- {emotes.map((emote) => ( - handleEmojiClick(emote.emoji)}> + {emotes.map((emote, i) => ( + handleEmojiClick(emote.emoji)}> {emote.emoji} {emote.count} ))} @@ -63,8 +66,8 @@ const EmojiReaction = ({ emotes, callback = () => {} }) => { horizontal: 'center', }} > - {emojiMenu.map((emoji) => ( - handleEmojiClick(emoji)}>{emoji} + {emojiMenu.map((emoji, i) => ( + handleEmojiClick(emoji)}>{emoji} ))} , ] diff --git a/web/src/components/Parts/Parts.js b/web/src/components/Parts/Parts.js index 8f49c7b..b5573e8 100644 --- a/web/src/components/Parts/Parts.js +++ b/web/src/components/Parts/Parts.js @@ -1,6 +1,7 @@ import { useMutation, useFlash } from '@redwoodjs/web' import { Link, routes } from '@redwoodjs/router' import { Image as CloudinaryImage } from 'cloudinary-react' +import EmojiiReaction from 'src/components/EmojiReaction/EmojiReaction' import avatar from 'src/assets/harold.jpg' @@ -53,6 +54,17 @@ const PartsList = ({ parts }) => { } return ( + <> + console.log(e)} />
{parts.map((part) => { return ( @@ -82,7 +94,7 @@ const PartsList = ({ parts }) => {
)})} -
+
) } diff --git a/web/src/components/Svg/Svg.js b/web/src/components/Svg/Svg.js index 43ec2ff..0e03c06 100644 --- a/web/src/components/Svg/Svg.js +++ b/web/src/components/Svg/Svg.js @@ -11,7 +11,7 @@ const Svg = ({name, className: className2, strokeWidth = 2}) => { , "dots-vertical": - + } diff --git a/web/src/index.css b/web/src/index.css index eed36d4..5b01aec 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -36,7 +36,7 @@ body { /* TODO can I use a tailwind class here? */ - background-color: #4a5568; + background-color: #E5E5E5; } button, input, label, textarea {