From ab31bce72d8262d90baa87bc49ee5f84f3c21a19 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Tue, 30 Nov 2021 09:59:57 +0300 Subject: [PATCH] Adding index.ts for Avatar export Signed-off-by: Alex Andreev --- .../+catalog/catalog-entity-details.tsx | 2 +- src/renderer/components/+catalog/catalog.tsx | 2 +- .../+entity-settings/entity-settings.tsx | 2 +- src/renderer/components/avatar/index.ts | 22 +++++++++++++++++++ .../components/cluster-icon-settings.tsx | 2 +- .../components/hotbar/hotbar-icon.tsx | 2 +- .../components/layout/sidebar-cluster.tsx | 2 +- 7 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 src/renderer/components/avatar/index.ts diff --git a/src/renderer/components/+catalog/catalog-entity-details.tsx b/src/renderer/components/+catalog/catalog-entity-details.tsx index 825319ffa4..b3c9fc73c2 100644 --- a/src/renderer/components/+catalog/catalog-entity-details.tsx +++ b/src/renderer/components/+catalog/catalog-entity-details.tsx @@ -30,7 +30,7 @@ import { CatalogEntityDetailRegistry } from "../../../extensions/registries"; import type { CatalogEntityItem } from "./catalog-entity-item"; import { isDevelopment } from "../../../common/vars"; import { cssNames } from "../../utils"; -import { Avatar } from "../avatar/avatar"; +import { Avatar } from "../avatar"; interface Props { item: CatalogEntityItem | null | undefined; diff --git a/src/renderer/components/+catalog/catalog.tsx b/src/renderer/components/+catalog/catalog.tsx index 45b0844193..bb39419ed3 100644 --- a/src/renderer/components/+catalog/catalog.tsx +++ b/src/renderer/components/+catalog/catalog.tsx @@ -44,7 +44,7 @@ import { CatalogMenu } from "./catalog-menu"; import { RenderDelay } from "../render-delay/render-delay"; import { Icon } from "../icon"; import { HotbarToggleMenuItem } from "./hotbar-toggle-menu-item"; -import { Avatar } from "../avatar/avatar"; +import { Avatar } from "../avatar"; export const previousActiveTab = createStorage("catalog-previous-active-tab", browseCatalogTab); diff --git a/src/renderer/components/+entity-settings/entity-settings.tsx b/src/renderer/components/+entity-settings/entity-settings.tsx index dd97e06b0a..65a953a655 100644 --- a/src/renderer/components/+entity-settings/entity-settings.tsx +++ b/src/renderer/components/+entity-settings/entity-settings.tsx @@ -34,7 +34,7 @@ import type { EntitySettingsRouteParams } from "../../../common/routes"; import { groupBy } from "lodash"; import { SettingLayout } from "../layout/setting-layout"; import logger from "../../../common/logger"; -import { Avatar } from "../avatar/avatar"; +import { Avatar } from "../avatar"; interface Props extends RouteComponentProps { } diff --git a/src/renderer/components/avatar/index.ts b/src/renderer/components/avatar/index.ts new file mode 100644 index 0000000000..38d3bff65b --- /dev/null +++ b/src/renderer/components/avatar/index.ts @@ -0,0 +1,22 @@ +/** + * Copyright (c) 2021 OpenLens Authors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +export * from "./avatar"; diff --git a/src/renderer/components/cluster-settings/components/cluster-icon-settings.tsx b/src/renderer/components/cluster-settings/components/cluster-icon-settings.tsx index 527d67c32c..4fb37dc1a2 100644 --- a/src/renderer/components/cluster-settings/components/cluster-icon-settings.tsx +++ b/src/renderer/components/cluster-settings/components/cluster-icon-settings.tsx @@ -27,7 +27,7 @@ import { observer } from "mobx-react"; import type { KubernetesCluster } from "../../../../common/catalog-entities"; import { FilePicker, OverSizeLimitStyle } from "../../file-picker"; import { MenuActions, MenuItem } from "../../menu"; -import { Avatar } from "../../avatar/avatar"; +import { Avatar } from "../../avatar"; enum GeneralInputStatus { CLEAN = "clean", diff --git a/src/renderer/components/hotbar/hotbar-icon.tsx b/src/renderer/components/hotbar/hotbar-icon.tsx index 485081e382..08f51021f9 100644 --- a/src/renderer/components/hotbar/hotbar-icon.tsx +++ b/src/renderer/components/hotbar/hotbar-icon.tsx @@ -28,7 +28,7 @@ import { cssNames } from "../../utils"; import { ConfirmDialog } from "../confirm-dialog"; import { Menu, MenuItem } from "../menu"; import { observer } from "mobx-react"; -import { Avatar, AvatarProps } from "../avatar/avatar"; +import { Avatar, AvatarProps } from "../avatar"; import { Icon } from "../icon"; import { Tooltip } from "../tooltip"; diff --git a/src/renderer/components/layout/sidebar-cluster.tsx b/src/renderer/components/layout/sidebar-cluster.tsx index aa9bb57866..baa77f168e 100644 --- a/src/renderer/components/layout/sidebar-cluster.tsx +++ b/src/renderer/components/layout/sidebar-cluster.tsx @@ -26,7 +26,7 @@ import { HotbarStore } from "../../../common/hotbar-store"; import { broadcastMessage } from "../../../common/ipc"; import type { CatalogEntity, CatalogEntityContextMenu, CatalogEntityContextMenuContext } from "../../api/catalog-entity"; import { IpcRendererNavigationEvents } from "../../navigation/events"; -import { Avatar } from "../avatar/avatar"; +import { Avatar } from "../avatar"; import { Icon } from "../icon"; import { navigate } from "../../navigation"; import { Menu, MenuItem } from "../menu";