diff --git a/src/components/NavBar/index.jsx b/src/components/NavBar/index.jsx index 60e1be6..48a50f4 100644 --- a/src/components/NavBar/index.jsx +++ b/src/components/NavBar/index.jsx @@ -3,7 +3,7 @@ * * Shows global top navigation bar with all apps menu, logo and user menu. */ -import React, { + import React, { useState, useCallback, Fragment, @@ -51,6 +51,14 @@ const NavBar = ({ hideSwitchTools }) => { [setActiveApp] ); + const renderTopcoderLogo = hideSwitchTools ? ( + Topcoder Logo + ) : ( + + Topcoder Logo + + ); + return (
@@ -60,9 +68,7 @@ const NavBar = ({ hideSwitchTools }) => { ) ) : ( - - Topcoder Logo - + {renderTopcoderLogo}
{activeApp ? activeApp.title : ""} @@ -72,13 +78,7 @@ const NavBar = ({ hideSwitchTools }) => {
- {isMobile ? ( - - Topcoder Logo - - ) : ( - - )} + {isMobile ? renderTopcoderLogo : } {process.env.NODE_ENV === "test" && (

Navbar App Test

)}