Skip to content

Commit

Permalink
add login prompt on itineraries
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksors committed Jan 28, 2024
1 parent 4a2f519 commit e4143e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pages/itineraries/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ const Index = () => {
}
}, [wingmanUser])

if (!user) return (
<div className='flex flex-col justify-center items-center gap-5 px-24 py-12 pt-24'>
<p className='text-xl text-gray-700 italic'>Please log in to view your itineraries!</p>
<Button className='fixed bottom-3'><Link href='/api/auth/login?redirectTo=/users/callback'>Log In</Link></Button>
</div>
)

return (
<div className='flex flex-col justify-center items-center gap-5 px-24 py-12 pt-24'>
Expand Down

0 comments on commit e4143e1

Please sign in to comment.