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
08afbaf0
Commit
08afbaf0
authored
Aug 01, 2019
by
Tonk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mock component
parent
24ca2c57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
2 deletions
+112
-2
src/Pages/Home.js
+25
-2
src/components/DataTable.js
+87
-0
No files found.
src/Pages/Home.js
View file @
08afbaf0
import
React
from
'react'
;
import
React
from
'react'
;
import
app
from
'../firebase'
;
import
app
from
'../firebase'
;
import
{
Row
,
Col
,
Container
}
from
'react-bootstrap'
;
import
DataTable
from
'../components/DataTable'
;
// mock component
const
Map
=
()
=>
<
Col
>
Map
<
/Col>
;
const
CurrentChart
=
()
=>
<
Col
>
Current
Chart
<
/Col>
;
const
RevenueChart
=
()
=>
<
Col
>
Revenue
chart
<
/Col>
;
const
PeopleChart
=
()
=>
<
Col
>
People
chart
<
/Col>
;
const
RemoteChart
=
()
=>
<
Col
>
Remote
chart
<
/Col>
;
const
Home
=
()
=>
{
const
Home
=
()
=>
{
const
signOut
=
async
()
=>
{
const
signOut
=
async
()
=>
{
await
app
.
auth
().
signOut
();
await
app
.
auth
().
signOut
();
};
};
return
(
return
(
<>
<
Container
>
<
h1
>
Home
<
/h1
>
<
h1
>
Home
<
/h1
>
<
button
onClick
=
{
signOut
}
>
signOut
<
/button
>
<
button
onClick
=
{
signOut
}
>
signOut
<
/button
>
<
/
>
<
Row
>
<
Map
/>
<
/Row
>
<
Row
>
<
CurrentChart
/>
<
RevenueChart
/>
<
/Row
>
<
Row
>
<
PeopleChart
/>
<
RemoteChart
/>
<
/Row
>
<
Row
>
<
DataTable
/>
<
/Row
>
<
/Container
>
);
);
};
};
...
...
src/components/DataTable.js
0 → 100644
View file @
08afbaf0
import
React
from
'react'
;
import
{
Col
,
Table
}
from
'react-bootstrap'
;
const
DataTable
=
()
=>
{
return
(
<
Col
>
<
Table
striped
bordered
hover
size
=
"sm"
>
<
thead
>
<
tr
>
<
th
>
Site
<
/th
>
<
th
>
People
<
/th
>
<
th
>
Revenue
<
/th
>
<
th
>
Timestamp
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
>
<
tr
>
<
td
>
1
<
/td
>
<
td
>
Mark
<
/td
>
<
td
>
Otto
<
/td
>
<
td
>
@
mdo
<
/td
>
<
/tr
>
<
tr
>
<
td
>
2
<
/td
>
<
td
>
Jacob
<
/td
>
<
td
>
Thornton
<
/td
>
<
td
>
@
fat
<
/td
>
<
/tr
>
<
tr
>
<
td
>
2
<
/td
>
<
td
>
Jacob
<
/td
>
<
td
>
Thornton
<
/td
>
<
td
>
@
fat
<
/td
>
<
/tr
>
<
tr
>
<
td
>
2
<
/td
>
<
td
>
Jacob
<
/td
>
<
td
>
Thornton
<
/td
>
<
td
>
@
fat
<
/td
>
<
/tr
>
<
tr
>
<
td
>
2
<
/td
>
<
td
>
Jacob
<
/td
>
<
td
>
Thornton
<
/td
>
<
td
>
@
fat
<
/td
>
<
/tr
>
<
tr
>
<
td
>
2
<
/td
>
<
td
>
Jacob
<
/td
>
<
td
>
Thornton
<
/td
>
<
td
>
@
fat
<
/td
>
<
/tr
>
<
tr
>
<
td
>
2
<
/td
>
<
td
>
Jacob
<
/td
>
<
td
>
Thornton
<
/td
>
<
td
>
@
fat
<
/td
>
<
/tr
>
<
tr
>
<
td
>
2
<
/td
>
<
td
>
Jacob
<
/td
>
<
td
>
Thornton
<
/td
>
<
td
>
@
fat
<
/td
>
<
/tr
>
<
tr
>
<
td
>
2
<
/td
>
<
td
>
Jacob
<
/td
>
<
td
>
Thornton
<
/td
>
<
td
>
@
fat
<
/td
>
<
/tr
>
<
tr
>
<
td
>
2
<
/td
>
<
td
>
Jacob
<
/td
>
<
td
>
Thornton
<
/td
>
<
td
>
@
fat
<
/td
>
<
/tr
>
<
tr
>
<
td
>
2
<
/td
>
<
td
>
Jacob
<
/td
>
<
td
>
Thornton
<
/td
>
<
td
>
@
fat
<
/td
>
<
/tr
>
<
/tbody
>
<
/Table
>
<
/Col
>
);
};
export
default
DataTable
;
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