Skip to content

Commit

Permalink
Restore app data
Browse files Browse the repository at this point in the history
  • Loading branch information
gion committed Oct 10, 2018
1 parent faec969 commit e6db715
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sample-site/src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ import {CSVLink, CSVDownload} from 'react-csv';
import Table from './Table.jsx';

const csvHeaders = [
"a", "b", "c"
"Company","جهة الإتصال ","王玉普"
]
const csvData =[
['Alfreds Futterkiste' ,'Maria Anders', 'Germany'] ,
['Rathath IT', 'Abdennour TM' , 'تونس'] ,
['Sinopec', '王玉普' , '中国'],
['Auto1', 'Petter' , 'Germany'] ,
['Estifeda', 'Yousri K' , 'تونس'] ,
['Nine 10ᵗʰ', 'Amjed Idris' , 'المملكة العربية السعودية '] ,
['Tamkeen', 'Mohamed Alshibi' , 'المملكة العربية السعودية'] ,
['Packet Publishing', 'David Become' , 'UK'] ,
['Software hourse', 'Soro' , 'Poland']
];

Expand Down Expand Up @@ -34,7 +41,6 @@ class App extends React.Component {
</div>
<div className="large-2 columns">
<CSVLink
target="_self"
headers={csvHeaders}
data={csvData}
filename={this.getFileName()}
Expand Down

0 comments on commit e6db715

Please sign in to comment.