Hide dgit icon if connected to localhost

pull/5370/head
David Disu 2 years ago committed by Aniket
parent 52f8d38010
commit afd951af3d
  1. 2
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -259,7 +259,7 @@ export function Workspace () {
</span> </span>
</span> </span>
<Dropdown id="workspacesSelect" data-id="workspacesSelect"> <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 } { selectedWorkspace ? selectedWorkspace.name : currentWorkspace === LOCALHOST ? 'localhost' : NO_WORKSPACE }
</Dropdown.Toggle> </Dropdown.Toggle>

Loading…
Cancel
Save