Hide dgit icon if connected to localhost

pull/2606/head
David Disu 2 years ago committed by Aniket
parent 590792ca8c
commit 374d151179
  1. 2
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -259,7 +259,7 @@ export function Workspace () {
</span>
</span>
<Dropdown id="workspacesSelect" data-id="workspacesSelect">
<Dropdown.Toggle as={CustomToggle} id="dropdown-custom-components" className="btn btn-light btn-block w-100 d-inline-block border border-dark form-control" icon={selectedWorkspace && selectedWorkspace.isGitRepo ? 'far fa-code-branch' : null}>
<Dropdown.Toggle as={CustomToggle} id="dropdown-custom-components" className="btn btn-light btn-block w-100 d-inline-block border border-dark form-control" icon={selectedWorkspace && selectedWorkspace.isGitRepo && !(currentWorkspace === LOCALHOST) ? 'far fa-code-branch' : null}>
{ selectedWorkspace ? selectedWorkspace.name : currentWorkspace === LOCALHOST ? 'localhost' : NO_WORKSPACE }
</Dropdown.Toggle>

Loading…
Cancel
Save