Skip to content

Commit

Permalink
feat: update the top-menu by changing the dashboard dipplay off
Browse files Browse the repository at this point in the history
Co-authored-by: Marian Zburlea <[email protected]>
Co-authored-by: Filip Cornel-Cristian <[email protected]>
  • Loading branch information
3 people committed Aug 16, 2019
1 parent a1674b0 commit d447e70
Show file tree
Hide file tree
Showing 3 changed files with 11,381 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/component/top-menu/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Component update

Bogdan is super eager to start with updating this component to hide the dashboard button when the user is not logged in

I'm start just now
2 changes: 1 addition & 1 deletion src/component/top-menu/top-menu.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const TopMenu = () => {
/>
</StyledLogoWrapper>
</StyledLink>
<StyledLink to="/dashboard">Dashboard</StyledLink>
{user && <StyledLink to="/dashboard">Dashboard</StyledLink>}
<Avatar user={user} />
<button onClick={handleLogInAndOut}>
{getLogInOutLabel()}
Expand Down
Loading

0 comments on commit d447e70

Please sign in to comment.