-
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.
Merge branch 'master' of github.com:decentraland/builder into fix/rem…
…ove-feature-flags
- Loading branch information
Showing
32 changed files
with
78 additions
and
235 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
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
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
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
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,3 +1,3 @@ | ||
.dui-navbar2 > .dui-submenu-container:not(.unselected) > .item.submenu { | ||
.dui-navbar > .dui-submenu-container:not(.unselected) > .item.submenu { | ||
width: 100%; | ||
} |
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,18 +1,12 @@ | ||
import React from 'react' | ||
import { Navbar2 as BaseNavbar2 } from 'decentraland-dapps/dist/containers' | ||
import { Navbar as BaseNavbar } from 'decentraland-dapps/dist/containers' | ||
import { Navbar2Pages } from 'decentraland-ui/dist/components/Navbar2/Navbar2.types' | ||
import UserInformation from 'components/UserInformation' | ||
import { Navbar as BaseNavbar } from 'decentraland-dapps/dist/containers/' | ||
import { NavbarPages } from 'decentraland-ui/dist/components/Navbar/Navbar.types' | ||
import { Props } from './Navbar.types' | ||
|
||
import './Navbar.css' | ||
|
||
const Navbar: React.FC<Props> = ({ hasPendingTransactions, isNavbarV2Enabled, ...props }: Props) => { | ||
return isNavbarV2Enabled ? ( | ||
<BaseNavbar2 activePage={Navbar2Pages.CREATE} {...props} hasActivity={hasPendingTransactions} /> | ||
) : ( | ||
<BaseNavbar activePage="builder" {...props} rightMenu={<UserInformation />} /> | ||
) | ||
const Navbar: React.FC<Props> = ({ hasPendingTransactions, ...props }: Props) => { | ||
return <BaseNavbar activePage={NavbarPages.CREATE} {...props} hasActivity={hasPendingTransactions} /> | ||
} | ||
|
||
export default React.memo(Navbar) |
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,9 +1,9 @@ | ||
import { NavbarProps } from 'decentraland-ui' | ||
import { NavbarProps } from 'decentraland-dapps/dist/containers/Navbar/Navbar.types' | ||
import { Dispatch } from 'redux' | ||
|
||
export type Props = Partial<NavbarProps> & { isNewNavbarEnabled: boolean; isNavbarV2Enabled: boolean; hasPendingTransactions: boolean } | ||
export type Props = Partial<NavbarProps> & { isNewNavbarEnabled: boolean; hasPendingTransactions: boolean } | ||
|
||
export type MapStateProps = Pick<Props, 'hasPendingTransactions' | 'isConnected' | 'isNewNavbarEnabled' | 'isNavbarV2Enabled'> | ||
export type MapStateProps = Pick<Props, 'hasPendingTransactions' | 'isSignedIn' | 'isNewNavbarEnabled'> | ||
export type MapDispatchProps = Pick<Props, 'onSignIn'> | ||
export type MapDispatch = Dispatch | ||
export type OwnProps = Partial<Props> |
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
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
Oops, something went wrong.