Skip to content

Commit

Permalink
fix: silence linting errors for stories
Browse files Browse the repository at this point in the history
  • Loading branch information
johnflank committed Apr 20, 2022
1 parent 2279b93 commit 33da923
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Button/Button.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Variant1.args = {
icon: "alert",
size: "sm",
onClick: () => {
// eslint-disable-next-line no-alert
alert("hello");
}
};
1 change: 1 addition & 0 deletions src/components/Comment/comment-text.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ const Template = (arg) => <CommentText {...arg} />;
export const Variant1 = Template.bind({});
Variant1.args = {
text: "text",
// eslint-disable-next-line no-alert
onClickTag: () => alert("hello!")
};
3 changes: 2 additions & 1 deletion src/components/RefreshButton/RefreshButton.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export default {
title: "RefreshButton",
component: RefreshButton,
args: {
onClick: () => alert("hillo!"),
// eslint-disable-next-line no-alert
onClick: () => alert("hello!"),
className: ""
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ Variant1.args = {
topologies: data,
title: "Add Card",
submitButtonTitle: "Add",
// eslint-disable-next-line no-alert
onSubmit: () => alert("submit"),
defaultChecked: [data[0].id]
};

0 comments on commit 33da923

Please sign in to comment.