mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: @lens/lens-ide build, affecting to @k8slens/extensions types compilation in yarn compile:extension-types
This commit is contained in:
parent
8a2f2ed74b
commit
b0295ec6fb
@ -5,7 +5,8 @@
|
|||||||
|
|
||||||
import { action, computed, observable, makeObservable } from "mobx";
|
import { action, computed, observable, makeObservable } from "mobx";
|
||||||
import { once } from "lodash";
|
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";
|
import { CatalogCategory, CatalogEntityData, CatalogEntityKindData } from "./catalog-entity";
|
||||||
|
|
||||||
export type CategoryFilter = (category: CatalogCategory) => any;
|
export type CategoryFilter = (category: CatalogCategory) => any;
|
||||||
|
|||||||
@ -9,7 +9,8 @@ import { CatalogCategory, CatalogEntity, CatalogEntityData, catalogCategoryRegis
|
|||||||
import "../../common/catalog-entities";
|
import "../../common/catalog-entities";
|
||||||
import type { Cluster } from "../../common/cluster/cluster";
|
import type { Cluster } from "../../common/cluster/cluster";
|
||||||
import { ClusterStore } from "../../common/cluster-store/cluster-store";
|
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 { once } from "lodash";
|
||||||
import logger from "../../common/logger";
|
import logger from "../../common/logger";
|
||||||
import { CatalogRunEvent } from "../../common/catalog/catalog-run-event";
|
import { CatalogRunEvent } from "../../common/catalog/catalog-run-event";
|
||||||
|
|||||||
@ -11,8 +11,9 @@ import React, { ReactNode } from "react";
|
|||||||
import { computed, makeObservable } from "mobx";
|
import { computed, makeObservable } from "mobx";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import ReactSelect, { components } from "react-select";
|
import ReactSelect, { components } from "react-select";
|
||||||
|
import ReactSelectCreatable from "react-select/creatable";
|
||||||
import type { ActionMeta, OptionTypeBase, Props as ReactSelectProps, Styles } from "react-select";
|
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 { ThemeStore } from "../../theme.store";
|
||||||
import { boundMethod, cssNames } from "../../utils";
|
import { boundMethod, cssNames } from "../../utils";
|
||||||
@ -139,7 +140,7 @@ export class Select extends React.Component<SelectProps> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return isCreatable
|
return isCreatable
|
||||||
? <Creatable {...selectProps}/>
|
? <ReactSelectCreatable {...selectProps}/>
|
||||||
: <ReactSelect {...selectProps}/>;
|
: <ReactSelect {...selectProps}/>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user