Skip to content

Commit bf273e4

Browse files
authored
feat(#155): receive delimiter value
1 parent fc9d454 commit bf273e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

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

44
const CsvDownload = (props) => {
5-
const { data, filename, ...others } = props
5+
const { data, filename, delimiter, ...others } = props
66

77
return (
8-
<button onClick={() => csvDownload({ data, filename })} {...others}>
8+
<button onClick={() => csvDownload({ data, filename, delimiter })} {...others}>
99
{props.children || 'Download Data'}
1010
</button>
1111
)

0 commit comments

Comments
 (0)