Skip to content

Commit

Permalink
Fix usage of action() helper from @storybook/addon-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywiebe committed Oct 31, 2024
1 parent 6315ec8 commit 3bb6fdc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {actions} from "@storybook/addon-actions";
import {action} from "@storybook/addon-actions";

import InputWithExamples from "../input-with-examples";

Expand All @@ -10,7 +10,7 @@ const meta: Meta = {
args: {
examples: [],
id: "",
onChange: actions("onChange"),
onChange: action("onChange"),
value: "",
},
argTypes: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {actions} from "@storybook/addon-actions";
import {action} from "@storybook/addon-actions";

import MathInput from "../math-input";

Expand All @@ -18,7 +18,7 @@ const meta: Meta = {
},
convertDotToTimes: false,
value: "",
onChange: actions("onChange"),
onChange: action("onChange"),
analytics: {onAnalyticsEvent: () => Promise.resolve()},
labelText: "Math input",
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {actions} from "@storybook/addon-actions";
import {action} from "@storybook/addon-actions";

import StubTagEditor from "../stub-tag-editor";

Expand All @@ -9,7 +9,7 @@ const meta: Meta = {
component: StubTagEditor,
args: {
value: [],
onChange: actions("onChange"),
onChange: action("onChange"),
},
argTypes: {
onChange: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {actions} from "@storybook/addon-actions";
import {action} from "@storybook/addon-actions";

import TextInput from "../text-input";

Expand All @@ -8,9 +8,9 @@ const meta: Meta = {
title: "Perseus/Components/Text Input",
component: TextInput,
args: {
onChange: actions("onChange"),
onBlur: actions("onBlur"),
onFocus: actions("onFocus"),
onChange: action("onChange"),
onBlur: action("onBlur"),
onFocus: action("onFocus"),
},
argTypes: {
onChange: {table: {disable: true}},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {actions} from "@storybook/addon-actions";
import {action} from "@storybook/addon-actions";
import * as React from "react";

import TextListEditor from "../text-list-editor";
Expand All @@ -10,7 +10,7 @@ const meta: Meta = {
component: TextListEditor,
args: {
options: ["Test option 1", "Test option 2", "Test option 3"],
onChange: actions("onChange"),
onChange: action("onChange"),
},
argTypes: {
onChange: {table: {disable: true}},
Expand Down

0 comments on commit 3bb6fdc

Please sign in to comment.