Don't flash sign in to trade button until known to be logged out

This commit is contained in:
James Grugett 2022-02-20 22:37:53 -06:00
parent 793742b499
commit 62b1966b21

View File

@ -195,7 +195,7 @@ export function BetPanel(props: {
<Spacer h={6} /> <Spacer h={6} />
{user ? ( {user && (
<button <button
className={clsx( className={clsx(
'btn', 'btn',
@ -210,7 +210,8 @@ export function BetPanel(props: {
> >
{isSubmitting ? 'Submitting...' : 'Submit trade'} {isSubmitting ? 'Submitting...' : 'Submit trade'}
</button> </button>
) : ( )}
{user === null && (
<button <button
className="btn mt-4 whitespace-nowrap border-none bg-gradient-to-r from-teal-500 to-green-500 px-10 text-lg font-medium normal-case hover:from-teal-600 hover:to-green-600" className="btn mt-4 whitespace-nowrap border-none bg-gradient-to-r from-teal-500 to-green-500 px-10 text-lg font-medium normal-case hover:from-teal-600 hover:to-green-600"
onClick={firebaseLogin} onClick={firebaseLogin}