11import { BrowserRouter , Link } from 'react-router-dom' ;
22
3- import { action as sbAction } from '@ storybook/addon- actions' ;
3+ import { action } from 'storybook/actions' ;
44
55import {
66 EmptyState ,
@@ -21,7 +21,7 @@ export const Large = () => (
2121 description = "Add a preparation to clean, format, and transform data prior to processing."
2222 action = { {
2323 children : 'Create a dataset' ,
24- onClick : ( ) => sbAction ( 'clicked' ) ,
24+ onClick : ( ) => action ( 'clicked' ) ( ) ,
2525 icon : 'plus' ,
2626 actionType : 'button' ,
2727 } }
@@ -65,7 +65,7 @@ MediumWithAction.args = {
6565 link : { href : 'https://talend.com' , 'data-feature' : 'Feature name' } ,
6666 action : {
6767 children : 'Create a dataset' ,
68- onClick : ( ) => sbAction ( 'clicked' ) ,
68+ onClick : ( ) => action ( 'clicked' ) ( ) ,
6969 icon : 'plus' ,
7070 actionType : 'button' ,
7171 } ,
@@ -119,7 +119,7 @@ export const Demo = () => (
119119 description = "Any additional data here"
120120 action = { {
121121 children : 'Action' ,
122- onClick : ( ) => sbAction ( 'clicked' ) ,
122+ onClick : ( ) => action ( 'clicked' ) ( ) ,
123123 actionType : 'button' ,
124124 } }
125125 link = { { href : 'https://talend.com' } }
@@ -165,7 +165,7 @@ Usage.args = {
165165 link : { href : 'https://talend.com' , 'data-feature' : 'Feature name' } ,
166166 action : {
167167 children : 'Action' ,
168- onClick : ( ) => sbAction ( 'clicked' ) ,
168+ onClick : ( ) => action ( 'clicked' ) ( ) ,
169169 actionType : 'button' ,
170170 } ,
171171} ;
0 commit comments