mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 01:32:02 +10:00
- storing user information in firestore
This commit is contained in:
@ -19,9 +19,17 @@ const AuthModal = () => {
|
||||
console.log("Go to App");
|
||||
};
|
||||
|
||||
const getTitle = () =>
|
||||
user ? `Welcome, ${user.displayName}` : "Who are you?";
|
||||
|
||||
const getMessage = () =>
|
||||
user
|
||||
? `Awesome. Now that you've authenticated yourself, we can get on with the real reason you're here. Click on the Go to App button to start building your resume!`
|
||||
: `Reactive Resume needs to know who you are so it can securely authenticate you into the app and show you only your information. Once you are in, you can start building your resume, editing it to add new skills or sharing it with the world!`;
|
||||
|
||||
const loggedInAction = (
|
||||
<Fragment>
|
||||
<Button className="mr-6" title="Logout" onClick={logout} />
|
||||
<Button outline className="mr-8" title="Logout" onClick={logout} />
|
||||
<Button title="Go to App" onClick={handleGoToApp} />
|
||||
</Fragment>
|
||||
);
|
||||
@ -37,15 +45,10 @@ const AuthModal = () => {
|
||||
return (
|
||||
<BaseModal
|
||||
state={authModal}
|
||||
title="Who are you?"
|
||||
title={getTitle()}
|
||||
action={user ? loggedInAction : loggedOutAction}
|
||||
>
|
||||
<p>
|
||||
Reactive Resume needs to know who you are so it can securely
|
||||
authenticate you into the app and show you only your information. Once
|
||||
you are in, you can start building your resume, editing it to add new
|
||||
skills or sharing it with the world!
|
||||
</p>
|
||||
<p>{getMessage()}</p>
|
||||
</BaseModal>
|
||||
);
|
||||
};
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
}
|
||||
|
||||
.modal .body {
|
||||
@apply my-8;
|
||||
@apply mt-8 mb-10;
|
||||
}
|
||||
|
||||
.modal .actions {
|
||||
|
||||
Reference in New Issue
Block a user