File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ var CsvDownload = function CsvDownload(props) {
26
26
return _react2 . default . createElement (
27
27
'button' ,
28
28
_extends ( { onClick : function onClick ( ) {
29
- return ( 0 , _jsonToCsvExport2 . default ) ( props . data , props . filename ) ;
29
+ return ( 0 , _jsonToCsvExport2 . default ) ( data , filename ) ;
30
30
} } , others ) ,
31
31
props . children || 'Download Data'
32
32
) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const CsvDownload = props => {
5
5
const { data, filename, ...others } = props
6
6
7
7
return (
8
- < button onClick = { ( ) => csvDownload ( props . data , props . filename ) } { ...others } >
8
+ < button onClick = { ( ) => csvDownload ( data , filename ) } { ...others } >
9
9
{ props . children || 'Download Data' }
10
10
</ button >
11
11
)
You can’t perform that action at this time.
0 commit comments