1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Improve naming

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-11-28 12:12:49 -05:00
parent bef83d15e2
commit 78397d7f5c
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import catalogEntitySettingItemsInjectable from "./settings.injectable";
export type HasCatalogEntitySettingItems = (entity: CatalogEntity) => boolean;
const hasCatalogEntitySettingItemsInjectable = getInjectable({
id: "has-catalog-entity-settings",
id: "has-catalog-entity-setting-items",
instantiate: (di): HasCatalogEntitySettingItems => (entity) => {
const items = di.inject(catalogEntitySettingItemsInjectable, entity);

View File

@ -15,7 +15,7 @@ interface Dependencies {
getClusterById: GetClusterById;
}
function NonInjectedProxyKubernetesClusterSettings({ entity, getClusterById }: EntitySettingViewProps & Dependencies) {
function NonInjectedNamespaceKubernetesClusterSettings({ entity, getClusterById }: EntitySettingViewProps & Dependencies) {
const cluster = getClusterById(entity.getId());
if (!cluster) {
@ -29,7 +29,7 @@ function NonInjectedProxyKubernetesClusterSettings({ entity, getClusterById }: E
);
}
const NamespaceKubernetesClusterSettings = withInjectables<Dependencies, EntitySettingViewProps>(NonInjectedProxyKubernetesClusterSettings, {
const NamespaceKubernetesClusterSettings = withInjectables<Dependencies, EntitySettingViewProps>(NonInjectedNamespaceKubernetesClusterSettings, {
getProps: (di, props) => ({
...props,
getClusterById: di.inject(getClusterByIdInjectable),

View File

@ -10,7 +10,7 @@ import type { CatalogEntity } from "../../api/catalog-entity";
import { entitySettingInjectionToken } from "./token";
const catalogEntitySettingItemsInjectable = getInjectable({
id: "entity-settings",
id: "catalog-entity-setting-items",
instantiate: (di, entity) => {
const computedInjectMany = di.inject(computedInjectManyInjectable);
const items = computedInjectMany(entitySettingInjectionToken);