diff --git a/frontend/src/_components/OrganizationManager/CustomSelect.jsx b/frontend/src/_components/OrganizationManager/CustomSelect.jsx index 52930f08c7..d9b29ac1d8 100644 --- a/frontend/src/_components/OrganizationManager/CustomSelect.jsx +++ b/frontend/src/_components/OrganizationManager/CustomSelect.jsx @@ -1,7 +1,6 @@ import React, { useState } from 'react'; import Select from '@/_ui/Select'; import { components } from 'react-select'; -import { EditOrganization } from './EditOrganization'; import { CreateOrganization } from './CreateOrganization'; import { useTranslation } from 'react-i18next'; import { authenticationService } from '@/_services'; @@ -15,15 +14,14 @@ const Menu = (props) => { return ( -
+
<> -
props.selectProps.setShowEditOrg(true)} - > +
-
Workspaces ({props.options.length})
+
Workspaces ({props.options.length})
{admin && (
@@ -32,7 +30,7 @@ const Menu = (props) => { fill="var(--icon-strong)" className="" dataCy="add-new-workspace-link" - width="14" + width="15" />
@@ -60,22 +58,18 @@ const SingleValue = ({ selectProps }) => { }; export const CustomSelect = ({ ...props }) => { - const [showEditOrg, setShowEditOrg] = useState(false); const [showCreateOrg, setShowCreateOrg] = useState(false); const darkMode = localStorage.getItem('darkMode') === 'true'; - // const currentValue = props?.options.find((option) => option?.value === props?.value); return ( <> - {/* */}