Skip to content

Commit

Permalink
added a divider and -create w.- removed
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHus authored and Aniket-Engg committed Oct 7, 2024
1 parent daf40e1 commit da97ba2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
19 changes: 0 additions & 19 deletions libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit da97ba2

Please sign in to comment.