mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix cluster-settings package build process
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
df327dc109
commit
2709119910
3 files changed
+57
-9
No files matched your search
@@ -1,2 +1,30 @@
|
||||
export * from "../../core/src/renderer/components/cluster-settings/cluster-settings-menu-injection-token";
|
||||
export * from "../../core/src/renderer/components/cluster-settings/cluster-settings-component-injection-token";
|
||||
import { getInjectionToken } from "@ogre-tools/injectable";
|
||||
|
||||
type ClusterPreferences = {
|
||||
clusterName?: string;
|
||||
icon?: string | null;
|
||||
}
|
||||
|
||||
export interface ClusterIconMenuItem {
|
||||
id: string;
|
||||
title: string;
|
||||
disabled?: (preferences: ClusterPreferences) => boolean;
|
||||
onClick: (preferences: ClusterPreferences) => void;
|
||||
}
|
||||
|
||||
export const clusterIconSettingsMenuInjectionToken = getInjectionToken<ClusterIconMenuItem>({
|
||||
id: "cluster-icon-settings-menu-injection-token",
|
||||
});
|
||||
|
||||
export interface ClusterIconSettingComponentProps {
|
||||
preferences: ClusterPreferences;
|
||||
}
|
||||
|
||||
export interface ClusterIconSettingsComponent {
|
||||
id: string;
|
||||
Component: React.ComponentType<ClusterIconSettingComponentProps>;
|
||||
}
|
||||
|
||||
export const clusterIconSettingsComponentInjectionToken = getInjectionToken<ClusterIconSettingsComponent>({
|
||||
id: "cluster-icon-settings-component-injection-token",
|
||||
});
|
||||
Reference in new issue
Block a user