added a divider and -create w.- removed

pull/5248/head
lianahus 2 months ago committed by Aniket
parent 5b83b6f404
commit 80da8a90f7
  1. 1
      libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx
  2. 19
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -140,6 +140,7 @@ export function HamburgerMenu(props: HamburgerMenuProps) {
}}
platforms={[appPlatformTypes.web]}
></HamburgerMenuItem>
<Dropdown.Divider className="border mb-0 mt-0 remixui_menuhr" style={{ pointerEvents: 'none' }} />
<HamburgerMenuItem
kind="localFileSystem"
fa="far fa-desktop"

@ -917,22 +917,6 @@ export function Workspace() {
_paq.push(['trackEvent', 'Workspace', 'GIT', 'login'])
}
const CreateDropDownMenuItem = () => {
return (
<>
<Dropdown.Item
onClick={() => {
createWorkspace()
}}
>
<span className="pl-3">
{' '}
- <FormattedMessage id="filePanel.createNewWorkspace" /> -{' '}
</span>
</Dropdown.Item>
</>
)
}
const IsGitRepoDropDownMenuItem = (props: { isGitRepo: boolean, mName: string}) => {
return (
<>
@ -1124,9 +1108,6 @@ export function Workspace() {
{selectedWorkspace ? selectedWorkspace.name === LOCALHOST ? togglerText : selectedWorkspace.name : currentWorkspace === LOCALHOST ? formatNameForReadonly('localhost') : NO_WORKSPACE}
</Dropdown.Toggle>
<Dropdown.Menu as={CustomMenu} className="w-100 custom-dropdown-items" data-id="custom-dropdown-items">
{
currentWorkspace !== LOCALHOST && <CreateDropDownMenuItem />
}
<Dropdown.Item
onClick={() => {
switchWorkspace(LOCALHOST)

Loading…
Cancel
Save