mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Fix crash in HelmChartDetails Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix bug in helm chart icon fallback Signed-off-by: Sebastian Malton <sebastian@malton.name> * Update snapshots Signed-off-by: Sebastian Malton <sebastian@malton.name> * Factor out HelmChartIcon for better reusability Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix compile error Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix remaining type errors Signed-off-by: Sebastian Malton <sebastian@malton.name> * Remove HelmChart list figure background Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Removing dangerouslySetInnerHTML usage Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Snapshots update Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Using currentColor from cascade instead of specific one Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
25 lines
776 B
TypeScript
25 lines
776 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
import { getInjectable } from "@ogre-tools/injectable";
|
|
import type { ShowNotification } from "./notifications";
|
|
import showInfoNotificationInjectable from "./show-info-notification.injectable";
|
|
|
|
const showShortInfoNotificationInjectable = getInjectable({
|
|
id: "show-short-info-notification",
|
|
instantiate: (di): ShowNotification => {
|
|
const showInfoNotification = di.inject(showInfoNotificationInjectable);
|
|
|
|
return (message, customOpts = {}) => {
|
|
return showInfoNotification(message, {
|
|
timeout: 5_000,
|
|
...customOpts,
|
|
});
|
|
};
|
|
},
|
|
});
|
|
|
|
export default showShortInfoNotificationInjectable;
|