Move "Log out" button into the nav menu
When actually using mobile, I was like "oh, it's maybe not great that the menu button is tiny and the Log out button is huge". Awkward click targets!
This commit is contained in:
parent
6e33132881
commit
9e5dfd1c84
1 changed files with 6 additions and 4 deletions
|
@ -129,7 +129,7 @@ function UserNavBarSection() {
|
|||
<NavLinksList>
|
||||
{id && (
|
||||
<NavLinkItem as={Link} to={`/user/${id}/items`}>
|
||||
Items
|
||||
Lists
|
||||
</NavLinkItem>
|
||||
)}
|
||||
<NavLinkItem as={Link} to={`/your-outfits`}>
|
||||
|
@ -138,10 +138,12 @@ function UserNavBarSection() {
|
|||
<NavLinkItem as={Link} to="/modeling">
|
||||
Modeling
|
||||
</NavLinkItem>
|
||||
<NavLinkItem
|
||||
onClick={() => logout({ returnTo: window.location.origin })}
|
||||
>
|
||||
Log out
|
||||
</NavLinkItem>
|
||||
</NavLinksList>
|
||||
<NavButton onClick={() => logout({ returnTo: window.location.origin })}>
|
||||
Log out
|
||||
</NavButton>
|
||||
</HStack>
|
||||
);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue