Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Daily Thought App
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COM3014-Coursework
Daily Thought App
Commits
93ec3dc5
Commit
93ec3dc5
authored
2 years ago
by
Matt Kirby
Browse files
Options
Downloads
Patches
Plain Diff
Fixed likestack logic and styling changes
parent
40cd3722
No related branches found
Branches containing commit
No related tags found
1 merge request
!8
create "Basic components"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daily-thought-frontend/src/components/post/AnswerCard.tsx
+1
-1
1 addition, 1 deletion
daily-thought-frontend/src/components/post/AnswerCard.tsx
daily-thought-frontend/src/components/post/LikeStack.tsx
+1
-1
1 addition, 1 deletion
daily-thought-frontend/src/components/post/LikeStack.tsx
with
2 additions
and
2 deletions
daily-thought-frontend/src/components/post/AnswerCard.tsx
+
1
−
1
View file @
93ec3dc5
...
...
@@ -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
>
...
...
This diff is collapsed.
Click to expand it.
daily-thought-frontend/src/components/post/LikeStack.tsx
+
1
−
1
View file @
93ec3dc5
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment