diff --git a/src/components/Projects/ProjectSolutionModal.tsx b/src/components/Projects/ProjectSolutionModal.tsx index 7c6b291ca..b2f11aa01 100644 --- a/src/components/Projects/ProjectSolutionModal.tsx +++ b/src/components/Projects/ProjectSolutionModal.tsx @@ -8,7 +8,7 @@ import { type AllowedVoteType, } from './ListProjectSolutions'; import { getRelativeTimeString } from '../../lib/date'; -import { ArrowUpRight, ThumbsDown, ThumbsUp } from 'lucide-react'; +import { ArrowUpRight, ThumbsDown, ThumbsUp, Trophy } from 'lucide-react'; import { VoteButton } from './VoteButton'; import { GitHubIcon } from '../ReactIcons/GitHubIcon'; import { isLoggedIn } from '../../lib/jwt'; @@ -132,63 +132,58 @@ export function ProjectSolutionModal(props: ProjectSolutionModalProps) { window.location.reload(); }} > -
-

{projectTitle}

-

- {projectDescription} -

- -
- -
- {solution?.user?.name} - {solution?.user.name} - - {submittedAlternatives[ - Math.floor(Math.random() * submittedAlternatives.length) - ] || 'submitted their solution'} - {' '} - - {getRelativeTimeString(solution?.submittedAt!)} - +
+
+

{projectTitle}

+ +
+

{projectDescription}

+ +
+
+ {solution?.user?.name} +
+

{solution?.user.name}'s Solution

+

+ {submittedAlternatives[Math.floor(Math.random() * submittedAlternatives.length)] || 'Submitted'}{' '} + {getRelativeTimeString(solution?.submittedAt!)} +

+
+
-
+
- - View Solution + + View Solution on GitHub + -
+
{ - handleSubmitVote(solution?.id!, 'upvote'); - }} + onClick={() => handleSubmitVote(solution?.id!, 'upvote')} /> - { - handleSubmitVote(solution?.id!, 'downvote'); - }} + hideCount={false} + onClick={() => handleSubmitVote(solution?.id!, 'downvote')} />