Skip to content

Commit

Permalink
471 add proposals to navbar (#484)
Browse files Browse the repository at this point in the history
* Add user icons

* Add account icon button & add my proposals nav link
  • Loading branch information
camilovegag authored May 16, 2024
1 parent 09d19df commit bc0431b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/berlin/public/icons/user-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/berlin/public/icons/user-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions packages/berlin/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
LogoTextContainer,
ThemeButton,
} from './Header.styled';
import IconButton from '../icon-button';

function Header() {
const queryClient = useQueryClient();
Expand Down Expand Up @@ -117,10 +118,15 @@ function Header() {
</NavButton>
</>
)}
<NavButton to="/account" $color="secondary">
Account
<NavButton to={`/events/${events?.[0].id}/register`} $color="secondary">
My proposals
</NavButton>
<Button onClick={() => mutateLogout()}>Log out</Button>
<IconButton
onClick={() => navigate('/account')}
icon={{ src: `/icons/user-${theme}.svg`, alt: 'User' }}
$color="primary"
/>
</>
) : (
<ZupassLoginButton>Login with Zupass</ZupassLoginButton>
Expand Down Expand Up @@ -162,6 +168,9 @@ function Header() {
</NavButton>
</>
)}
<NavButton to={`/events/${events?.[0].id}/register`} $color="secondary">
My proposals
</NavButton>
<NavButton to="/account" $color="secondary">
Account
</NavButton>
Expand Down

0 comments on commit bc0431b

Please sign in to comment.