"create a new workspace" item

pull/5370/head
yann300 2 years ago
parent 739fe841dd
commit 37283d6668
  1. 9
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -271,6 +271,15 @@ export function Workspace () {
</Dropdown.Toggle>
<Dropdown.Menu as={CustomMenu} className='w-100 custom-dropdown-items' data-id="custom-dropdown-items">
<Dropdown.Item
onClick={() => {
createWorkspace()
}}
>
{
<span className="pl-3"> - create a new workspace - </span>
}
</Dropdown.Item>
{
global.fs.browser.workspaces.map(({ name, isGitRepo }, index) => (
<Dropdown.Item

Loading…
Cancel
Save