-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upsell top bar for email confirm and account convert
- Loading branch information
Showing
6 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import isFullAccount from '@root/helpers/isFullAccount'; | ||
import isGuest from '@root/helpers/isGuest'; | ||
import User from '@root/models/db/user'; | ||
import Link from 'next/link'; | ||
import React from 'react'; | ||
|
||
export default function UpsellConvertOrConfirmTopBar({ user }: {user: User | null}) { | ||
return user && !isFullAccount(user) && ( <div className='bg-yellow-200 w-full text-black text-center text-sm p-2 shadow-lg'> | ||
{`${isGuest(user) ? 'Convert to a regular account' : 'Confirm your email'} in your `} | ||
<Link className='font-semibold text-blue-600 hover:underline' href='/settings'> | ||
Account Settings | ||
</Link> | ||
{' to unlock all basic features!'} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters