fix: @lens/lens-ide build, affecting to @k8slens/extensions types compilation in yarn compile:extension-types

This commit is contained in:
Roman committed 2022-02-20 14:56:14 +02:00
1 parent 8a2f2ed74b
commit b0295ec6fb
3 files changed
+7 -4

No files matched your search

@@ -5,7 +5,8 @@
import { action, computed, observable, makeObservable } from "mobx";
import { once } from "lodash";
import { iter, type Disposer, getOrInsertMap, strictSet } from "../utils";
import { iter, getOrInsertMap, strictSet } from "../utils";
import type { Disposer } from "../utils";
import { CatalogCategory, CatalogEntityData, CatalogEntityKindData } from "./catalog-entity";
export type CategoryFilter = (category: CatalogCategory) => any;
+2 -1
View File
@@ -9,7 +9,8 @@ import { CatalogCategory, CatalogEntity, CatalogEntityData, catalogCategoryRegis
import "../../common/catalog-entities";
import type { Cluster } from "../../common/cluster/cluster";
import { ClusterStore } from "../../common/cluster-store/cluster-store";
import { type Disposer, iter } from "../utils";
import { iter } from "../utils";
import type { Disposer } from "../utils";
import { once } from "lodash";
import logger from "../../common/logger";
import { CatalogRunEvent } from "../../common/catalog/catalog-run-event";
+3 -2
View File
@@ -11,8 +11,9 @@ import React, { ReactNode } from "react";
import { computed, makeObservable } from "mobx";
import { observer } from "mobx-react";
import ReactSelect, { components } from "react-select";
import ReactSelectCreatable from "react-select/creatable";
import type { ActionMeta, OptionTypeBase, Props as ReactSelectProps, Styles } from "react-select";
import Creatable, { type CreatableProps } from "react-select/creatable";
import type { CreatableProps } from "react-select/creatable";
import { ThemeStore } from "../../theme.store";
import { boundMethod, cssNames } from "../../utils";
@@ -139,7 +140,7 @@ export class Select extends React.Component<SelectProps> {
};
return isCreatable
? <Creatable {...selectProps}/>
? <ReactSelectCreatable {...selectProps}/>
: <ReactSelect {...selectProps}/>;
}
}