Skip to content
Snippets Groups Projects
Commit 93ec3dc5 authored by Matt Kirby's avatar Matt Kirby
Browse files

Fixed likestack logic and styling changes

parent 40cd3722
No related branches found
No related tags found
1 merge request!8create "Basic components"
......@@ -38,7 +38,7 @@ const AnswerCard: FC<PropsWithChildren<AnswerCardProps>> = ({
<ChatBubbleLeftIcon className="h-6 w-6" aria-hidden="true"/>
</button>
</div>
<LikeStack Users={[post.User, post.User, post.User, post.User, post.User]} />
<LikeStack Users={[post.User, post.User, post.User, post.User, post.User, post.User]} />
</div>
</div>
......
......@@ -26,7 +26,7 @@ const LikeStack:FC<PropsWithChildren<LikeStackProps>> = ({
} else if (index === 3) {
return (
<div className="inline-block h-6 w-6 rounded-full ring-2 ring-white bg-gray-100 flex items-center justify-center">
<p className="text-c-pink text-xs">{`+${Users.length - 3}`}</p>
<p className="text-c-pink text-xs">{`+${Users.length - 4}`}</p>
</div>
)
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment