mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-09-03 18:05:53 +00:00
* Introduced tsconfig.app.json and tsconfig.base.json * yarn.lock * Introduced tsconfig.app.json, tsconfig.base.jsonfig. * Refactored eslint.config.js to latest structure * Returned previous recommended rules. * More rules * Force import rules * Check * Check * Cleanup ESLint configuration and plugins * Cleanup heap: "writable",DD_RUM: "writable" from ESLint configuration * "scripts" moved to the top of package.json
27 lines
873 B
TypeScript
27 lines
873 B
TypeScript
import type { Meta } from "@storybook/react-vite";
|
|
import { action } from "storybook/actions";
|
|
|
|
import ErrorModal from "./ErrorModal";
|
|
|
|
const meta = {
|
|
/* 👇 The title prop is optional.
|
|
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
|
|
* to learn how to generate automatic titles
|
|
*/
|
|
title: "ErrorModal",
|
|
component: ErrorModal,
|
|
} satisfies Meta<typeof ErrorModal>;
|
|
|
|
export default meta;
|
|
|
|
export const Default = {
|
|
args: {
|
|
onClose: () => {
|
|
action("onClose")("on Close clicked");
|
|
},
|
|
titleText: "Failed to get list of charts",
|
|
contentText:
|
|
"failed to get list of releases, cause: Kubernetes cluster unreachable: Get "https://kubernetes.docker.internal:6443/version": dial tcp 127.0.0.1:6443: connectex: No connection could be made because the target machine actively refused it.",
|
|
},
|
|
};
|