diff --git a/src/components/AccountStreak/InviteFriends.tsx b/src/components/AccountStreak/InviteFriends.tsx index ff3885818..95d7e5f24 100644 --- a/src/components/AccountStreak/InviteFriends.tsx +++ b/src/components/AccountStreak/InviteFriends.tsx @@ -3,7 +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"; +import { TrophyEmoji } from '../ReactIcons/TrophyEmoji.tsx'; type InviteFriendsProps = { refByUserCount: number; @@ -21,65 +21,61 @@ export function InviteFriends(props: InviteFriendsProps) { ).toString(); return ( -
- Invite people to join roadmap.sh -
-Invite people to join roadmap.sh
+ ++ {refByUserCount === 0 && <>You haven't invited anyone yet.>} + {refByUserCount > 0 && refByUserCount < 10 && ( + <>{refByUserCount} of 10 users joined> + )} +
+ + {refByUserCount >= 10 && <>🎉 You've invited {refByUserCount} users>} + +You haven't invited anyone yet.
- )} - - {refByUserCount > 0 && refByUserCount < 10 && ( -{refByUserCount} of 10 users joined
- )} - - {refByUserCount >= 10 && ( -- 🎉 You've invited {refByUserCount} users -
- )} ++ Share the link below with anyone you think would benefit from using + roadmap.sh +
++ +
- Share{' '} - {' '} - with anyone you think would benefit from roadmap.sh -
-+