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 cf73c37 commit 1e224fc
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions components/page/didYouKnowTip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,12 @@ export default function DidYouKnowTip({ reqUser }: DidYouKnowTipProps) {
<>We have an iOS and Android app! Check it out: <Link className='underline' href='https://apps.apple.com/app/pathology-block-pushing-game/id1668925562'>iOS</Link> and <Link className='underline' href='https://play.google.com/store/apps/details?id=com.pathology.gg'>Android</Link>.</>,
<>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>.</>,
<>You can customize your notification preferences in your <Link className='underline' href='/settings/notifications'>notifications settings</Link>.</>
<>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>.</>,
] 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 1e224fc

Please sign in to comment.