-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e268f7
commit 2f0d35c
Showing
13 changed files
with
112 additions
and
117 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
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
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 |
---|---|---|
@@ -1,20 +1,11 @@ | ||
import { SignupForm } from "wasp/client/auth"; | ||
import { Link } from 'react-router-dom'; | ||
import { AuthWrapper } from './authWrapper'; | ||
import imgUrl from '../static/captn-logo-large.png'; | ||
import { State, LoginForm } from './LoginPage'; | ||
|
||
export function Signup() { | ||
return ( | ||
<AuthWrapper> | ||
<SignupForm /> | ||
<br /> | ||
<span className='text-sm font-medium text-captn-dark-blue'> | ||
I already have an account ( | ||
<Link to='/login' className='underline'> | ||
go to login | ||
</Link> | ||
). | ||
</span> | ||
<br /> | ||
<LoginForm logo={imgUrl} state={State.Signup} /> | ||
</AuthWrapper> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Link } from 'react-router-dom'; | ||
import FreeTrialButton from './FreeTrialButton'; | ||
|
||
interface UserActionButtonProps { | ||
user: any; | ||
renderGoToChat: boolean; | ||
} | ||
|
||
const UserActionButton: React.FC<UserActionButtonProps> = ({ | ||
user, | ||
renderGoToChat, | ||
}) => { | ||
if (!user) { | ||
return ( | ||
<Link | ||
to='/signup' | ||
className='no-underline rounded-md px-3.5 py-2.5 text-sm text-captn-light-cream hover:bg-captn-cta-green-hover shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:text-captn-light-cream bg-captn-cta-green' | ||
> | ||
Create an account | ||
</Link> | ||
); | ||
} | ||
|
||
if (!user.hasPaid) { | ||
return <FreeTrialButton />; | ||
} | ||
|
||
return renderGoToChat ? ( | ||
<a | ||
href='/chat' | ||
className='no-underline rounded-md px-3.5 py-2.5 text-sm text-captn-light-cream hover:bg-captn-cta-green-hover shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:text-captn-light-cream bg-captn-cta-green' | ||
> | ||
Go to chat <span aria-hidden='true'>→</span> | ||
</a> | ||
) : ( | ||
<></> | ||
); | ||
}; | ||
|
||
export default UserActionButton; |
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 |
---|---|---|
|
@@ -112,7 +112,7 @@ export const UserMenuItems = ({ | |
fill='' | ||
/> | ||
</svg> | ||
Log out | ||
Sign out | ||
</button> | ||
</> | ||
); | ||
|
Oops, something went wrong.