bugfix: a new flow added to re-enable disabled staffs.
This commit is contained in:
@@ -8,10 +8,18 @@ import { Input } from '@/components/ui/shared/Input';
|
||||
import { Button } from '@/components/ui/shared/Button';
|
||||
|
||||
export function OrganizationSelectorContent() {
|
||||
const { organizations, selectOrganization, createOrganization, isLoading, error, clearError } = useAuth();
|
||||
const {
|
||||
organizations,
|
||||
currentOrganization,
|
||||
selectOrganization,
|
||||
createOrganization,
|
||||
isLoading,
|
||||
error,
|
||||
clearError,
|
||||
} = useAuth();
|
||||
const canCreateOrganization = useMemo(
|
||||
() => canUserCreateOrganization(organizations),
|
||||
[organizations],
|
||||
() => canCreateOrganizationFromCurrentOrg(currentOrganization),
|
||||
[currentOrganization],
|
||||
);
|
||||
const [isCreateOpen, setIsCreateOpen] = useState(false);
|
||||
const [organizationName, setOrganizationName] = useState('');
|
||||
|
||||
Reference in New Issue
Block a user