Skip to content

Commit 30afec8

Browse files
author
Coston Perkins
committed
Change name
1 parent 95e0193 commit 30afec8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
1818

1919
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
2020

21-
var Json2Csv = function Json2Csv(props) {
21+
var CsvDownload = function CsvDownload(props) {
2222
var data = props.data,
2323
filename = props.filename,
2424
others = _objectWithoutProperties(props, ['data', 'filename']);
@@ -31,4 +31,4 @@ var Json2Csv = function Json2Csv(props) {
3131
props.children || 'Download Data'
3232
);
3333
};
34-
exports.default = Json2Csv;
34+
exports.default = CsvDownload;

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import csvDownload from 'json-to-csv-export'
33

4-
const Json2Csv = props => {
4+
const CsvDownload = props => {
55
const { data, filename, ...others } = props
66

77
return (
@@ -10,4 +10,4 @@ const Json2Csv = props => {
1010
</button>
1111
)
1212
}
13-
export default Json2Csv
13+
export default CsvDownload

0 commit comments

Comments
 (0)