aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2018-06-21 07:47:57 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2018-06-21 07:55:32 +0200
commitbe44cb9496e515acadbc6817eb6d8a2c04e1b03e (patch)
tree3bbfe7311942e5fb9ed44617bf38beb017fcae31
parent8f79e886fc56760694b3e1f470a8e61993b1ffba (diff)
Simplified code
-rw-r--r--app/features/navbar/components/Navbar.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/app/features/navbar/components/Navbar.js b/app/features/navbar/components/Navbar.js
index c193211..3d8c911 100644
--- a/app/features/navbar/components/Navbar.js
+++ b/app/features/navbar/components/Navbar.js
@@ -17,15 +17,6 @@ import Logo from './Logo';
*/
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.
*
* @returns {ReactElement[]}
@@ -65,7 +56,7 @@ class Navbar extends Component<*> {
key = { 0 } />
] }
globalPrimaryActions = { this._getPrimaryActions() }
- globalPrimaryIcon = { this._getPrimaryIcon() }
+ globalPrimaryIcon = { <Logo /> }
globalSecondaryActions = { this._getSecondaryActions() }
isElectronMac = { isElectronMac() }
isOpen = { false }