Show `Sign Out` only for logged in users (#961)

main
Catalin Miron 5 years ago committed by GitHub
parent bb960977bd
commit 9dfdd96c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -191,7 +191,7 @@ function Settings() {
<MenuButton name="Billing" select={selectMenu} selected={selected}></MenuButton> <MenuButton name="Billing" select={selectMenu} selected={selected}></MenuButton>
{/* <MenuButton name="API Keys" select={selectMenu} selected={selected} /> */} {/* <MenuButton name="API Keys" select={selectMenu} selected={selected} /> */}
<MenuButton name="Sign Out" select={logoutThunk} selected={selected} noArrows /> {user && <MenuButton name="Sign Out" select={logoutThunk} selected={selected} noArrows />}
</div> </div>
<div className="content"> <div className="content">
{selected === 'Plan' && <Plan selectBilling={selectMenu('Billing')} />} {selected === 'Plan' && <Plan selectBilling={selectMenu('Billing')} />}

Loading…
Cancel
Save