Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
toiletcoin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
atichat
toiletcoin
Commits
0ee1b091
Commit
0ee1b091
authored
Aug 05, 2019
by
Tonk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add remote and current columns
parent
dbb203d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
124 additions
and
16 deletions
+124
-16
src/components/DataTable.js
+124
-16
No files found.
src/components/DataTable.js
View file @
0ee1b091
...
@@ -4,22 +4,126 @@ import { CSVLink } from 'react-csv';
...
@@ -4,22 +4,126 @@ import { CSVLink } from 'react-csv';
import
{
FaFileCsv
}
from
'react-icons/fa'
;
import
{
FaFileCsv
}
from
'react-icons/fa'
;
const
mockdata
=
[
const
mockdata
=
[
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
{
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
site
:
'Pichaiyat Building'
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
people
:
2670.0
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
revenue
:
17.0
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
remote
:
''
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
current
:
''
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
timestamp
:
'07/31/2019 14:23'
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
{
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
site
:
'Pichaiyat Building'
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
people
:
2670.0
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
revenue
:
17.0
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
remote
:
''
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
current
:
''
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
timestamp
:
'07/31/2019 14:23'
,
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
timestamp
:
'07/31/2019 14:23'
},
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
{
site
:
'Pichaiyat Building'
,
people
:
2670.0
,
revenue
:
17.0
,
remote
:
''
,
current
:
''
,
timestamp
:
'07/31/2019 14:23'
,
},
];
];
export
default
class
DataTable
extends
React
.
Component
{
export
default
class
DataTable
extends
React
.
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -62,6 +166,8 @@ export default class DataTable extends React.Component {
...
@@ -62,6 +166,8 @@ export default class DataTable extends React.Component {
<
td
>
{
item
.
site
}
<
/td
>
<
td
>
{
item
.
site
}
<
/td
>
<
td
>
{
item
.
people
}
<
/td
>
<
td
>
{
item
.
people
}
<
/td
>
<
td
>
{
item
.
revenue
}
<
/td
>
<
td
>
{
item
.
revenue
}
<
/td
>
<
td
>
{
item
.
remote
}
<
/td
>
<
td
>
{
item
.
current
}
<
/td
>
<
td
>
{
item
.
timestamp
}
<
/td
>
<
td
>
{
item
.
timestamp
}
<
/td
>
<
/tr
>
<
/tr
>
);
);
...
@@ -104,6 +210,8 @@ export default class DataTable extends React.Component {
...
@@ -104,6 +210,8 @@ export default class DataTable extends React.Component {
<
th
>
Site
<
/th
>
<
th
>
Site
<
/th
>
<
th
>
People
<
/th
>
<
th
>
People
<
/th
>
<
th
>
Revenue
<
/th
>
<
th
>
Revenue
<
/th
>
<
th
>
Remote
<
/th
>
<
th
>
Current
<
/th
>
<
th
>
Timestamp
<
/th
>
<
th
>
Timestamp
<
/th
>
<
/tr
>
<
/tr
>
<
/thead
>
<
/thead
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment