mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 06:18:04 +00:00
Removal of ignore notation in storybook eslint and transition to actions function (#489)
* fix: desprecated .storybook/main.ts and actions-addons * remove: ignore notation in storybook eslint and transition to actions function * remove: unnecessary eslint ignore code
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
/* eslint-disable no-console */
|
||||
import { Meta } from "@storybook/react";
|
||||
import { Meta, StoryObj } from "@storybook/react";
|
||||
import Button from "./Button";
|
||||
|
||||
const meta = {
|
||||
@@ -13,7 +12,7 @@ const meta = {
|
||||
|
||||
export default meta;
|
||||
|
||||
export const Default = {
|
||||
export const Default: StoryObj<typeof Button> = {
|
||||
args: {
|
||||
children: (
|
||||
<>
|
||||
@@ -21,8 +20,8 @@ export const Default = {
|
||||
<span>Update</span>
|
||||
</>
|
||||
),
|
||||
onClick: () => {
|
||||
console.log("click");
|
||||
},
|
||||
},
|
||||
argTypes: {
|
||||
onClick: { action: "clicked" },
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user