Skip to content

Commit

Permalink
login link for some tips
Browse files Browse the repository at this point in the history
  • Loading branch information
sspenst committed Sep 30, 2023
1 parent 7ae14e1 commit 550cc4f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions components/page/didYouKnowTip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,21 @@ export default function DidYouKnowTip({ reqUser }: DidYouKnowTipProps) {
<>Follow level creators by clicking their username to visit their profile.</>,
<>Go Pro for features like Checkpoints, Redo, and community time comparisons. <Link className='underline' href='/settings/proaccount'>Learn more</Link>.</>,
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> 1e224fc7 (login link for some tips)
<>You can customize your notification preferences in your <Link className='underline' href='/settings/notifications'>notifications settings</Link>.</>,
<>See your <Link className='underline' href={reqUser ? `/profile/${reqUser.name}/achievements` : '/login'}>earned and potential achievements</Link>.</>,
<>Create collections of levels, like your favorites, <Link className='underline' href={reqUser ? `/profile/${reqUser.name}/collections` : '/login'}>here</Link>.</>,
<>You can customize your profile picture, bio, and more on <Link className='underline' href={reqUser ? `/profile/${reqUser.name}` : '/login'}>your profile</Link>.</>,
<<<<<<< HEAD
=======
<>You can customize your notification preferences in your <Link className='underline' href='/settings/notifications'>notifications settings</Link>.</>
>>>>>>> 58800b84 (post level modal and tooltips (#1000))
=======
>>>>>>> 1e224fc7 (login link for some tips)
] as JSX.Element[];

if (reqUser) {
tips.push(
<>See your <Link className='underline' href={`/profile/${reqUser.name}/achievements`}>earned and potential achievements</Link>.</>,
<>Create collections of levels, like your favorites, <Link className='underline' href={`/profile/${reqUser.name}/collections`}>here</Link>.</>,
<>You can customize your profile picture, bio, and more on <Link className='underline' href={`/profile/${reqUser.name}`}>your profile</Link>.</>,
);
}

const randomTip = useRef(tips[Math.floor(Math.random() * tips.length)]);

return (
Expand Down

0 comments on commit 550cc4f

Please sign in to comment.