-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Melisa Anabella Rossi
authored
Jan 5, 2024
1 parent
4fef3d0
commit db72cee
Showing
7 changed files
with
19 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
import * as React from 'react' | ||
import { Navbar as BaseNavbar } from 'decentraland-dapps/dist/containers' | ||
import UserInformation from 'components/UserInformation' | ||
import UserMenu from 'components/UserMenu' | ||
import { Props } from './Navbar.types' | ||
|
||
export default class Navbar extends React.PureComponent<Props> { | ||
render() { | ||
let props = this.props | ||
|
||
if (props.isConnected) { | ||
props = { ...props, rightMenu: <UserMenu /> } | ||
} | ||
if (props.isNewNavbarEnabled) { | ||
props = { ...props, rightMenu: <UserInformation /> } | ||
} | ||
return <BaseNavbar activePage="builder" {...props} /> | ||
return <BaseNavbar activePage="builder" {...this.props} rightMenu={<UserInformation />} /> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
db72cee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
builder – ./
builder-git-master-decentraland1.vercel.app
builder-decentraland1.vercel.app