Simplified code

This commit is contained in:
Saúl Ibarra Corretgé 2018-06-21 07:47:57 +02:00
parent 8f79e886fc
commit be44cb9496

View file

@ -16,15 +16,6 @@ import Logo from './Logo';
* Navigation Bar component. * Navigation Bar component.
*/ */
class Navbar extends Component<*> { class Navbar extends Component<*> {
/**
* Get the primary icon of Global Navigation.
*
* @returns {ReactElement}
*/
_getPrimaryIcon() {
return <Logo />;
}
/** /**
* Get the array of Primary actions of Global Navigation. * Get the array of Primary actions of Global Navigation.
* *
@ -65,7 +56,7 @@ class Navbar extends Component<*> {
key = { 0 } /> key = { 0 } />
] } ] }
globalPrimaryActions = { this._getPrimaryActions() } globalPrimaryActions = { this._getPrimaryActions() }
globalPrimaryIcon = { this._getPrimaryIcon() } globalPrimaryIcon = { <Logo /> }
globalSecondaryActions = { this._getSecondaryActions() } globalSecondaryActions = { this._getSecondaryActions() }
isElectronMac = { isElectronMac() } isElectronMac = { isElectronMac() }
isOpen = { false } isOpen = { false }