call isDev() function to properly hide workspace switcher in prod (#1154)

This commit is contained in:
Mike Sawka 2024-10-27 14:23:52 -07:00 committed by GitHub
parent 2f5837b0f6
commit d0d9095c92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -542,7 +542,7 @@ const TabBar = React.memo(({ workspace }: TabBarProps) => {
<WindowDrag ref={draggerLeftRef} className="left" /> <WindowDrag ref={draggerLeftRef} className="left" />
{appMenuButton} {appMenuButton}
{devLabel} {devLabel}
{isDev ? <WorkspaceSwitcher></WorkspaceSwitcher> : null} {isDev() ? <WorkspaceSwitcher></WorkspaceSwitcher> : null}
<div className="tab-bar" ref={tabBarRef} data-overlayscrollbars-initialize> <div className="tab-bar" ref={tabBarRef} data-overlayscrollbars-initialize>
<div className="tabs-wrapper" ref={tabsWrapperRef} style={{ width: `${tabsWrapperWidth}px` }}> <div className="tabs-wrapper" ref={tabsWrapperRef} style={{ width: `${tabsWrapperWidth}px` }}>
{tabIds.map((tabId, index) => { {tabIds.map((tabId, index) => {