diff --git a/src/components/AccountStreak/InviteFriends.tsx b/src/components/AccountStreak/InviteFriends.tsx index 1cbcd7128..ff3885818 100644 --- a/src/components/AccountStreak/InviteFriends.tsx +++ b/src/components/AccountStreak/InviteFriends.tsx @@ -3,6 +3,7 @@ import { useAuth } from '../../hooks/use-auth'; import { useCopyText } from '../../hooks/use-copy-text'; import { cn } from '../../lib/classname'; import { CheckIcon } from '../ReactIcons/CheckIcon'; +import {TrophyEmoji} from "../ReactIcons/TrophyEmoji.tsx"; type InviteFriendsProps = { refByUserCount: number; @@ -19,84 +20,63 @@ export function InviteFriends(props: InviteFriendsProps) { import.meta.env.DEV ? 'http://localhost:3000' : 'https://roadmap.sh', ).toString(); - if (refByUserCount === 1) { - return ( -
Invite 5 Friends to roadmap.sh
-2 of 5 friends invited
-- Share{' '} - to - invite your friends. -
-- Invite your friends to join roadmap.sh +
+ Invite people to join roadmap.sh
+You haven't invited anyone yet.
+ )} -{refByUserCount} of 10 users joined
+ )} + + {refByUserCount >= 10 && ( ++ 🎉 You've invited {refByUserCount} users +
+ )} ++ Share{' '} -
- {refByUserCount > 0 && (
- <>
- 🥳 You have invited{' '}
-
- {refByUserCount} user{refByUserCount > 1 ? 's' : ''} so far
-
- >
- )}
- {refByUserCount === 0 && <>🤔 You haven't invited anyone yet>}
+ {isCopied && (
+
@@ -104,7 +84,7 @@ export function InviteFriends(props: InviteFriendsProps) { href="/leaderboard" className="text-purple-400 underline-offset-2 hover:underline" > - See how you compare to others + See how you rank on the leaderboard