- implement actions section

This commit is contained in:
Amruth Pillai
2020-07-10 13:40:48 +05:30
parent 89fa8236e8
commit a8c5d29858
23 changed files with 304 additions and 167 deletions

View File

@ -39,23 +39,25 @@ const AuthModal = () => {
const loggedInAction = (
<>
<Button outline className="mr-8" title="Logout" onClick={logout} />
<Button title="Go to App" onClick={handleGotoApp} />
<Button outline className="mr-8" onClick={logout}>
Logout
</Button>
<Button title="" onClick={handleGotoApp}>
Go to App
</Button>
</>
);
const loggedOutAction = (
<Button
isLoading={isLoading}
title="Sign in with Google"
onClick={handleSignInWithGoogle}
/>
<Button isLoading={isLoading} onClick={handleSignInWithGoogle}>
Sign in with Google
</Button>
);
return (
<BaseModal
state={[open, setOpen]}
title={getTitle()}
state={[open, setOpen]}
action={user ? loggedInAction : loggedOutAction}
>
<p>{getMessage()}</p>