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
33753aea
Commit
33753aea
authored
Aug 07, 2019
by
Tonk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change tooltip import
parent
414302c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/components/DataCard.js
+12
-4
No files found.
src/components/DataCard.js
View file @
33753aea
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Card
,
Col
,
Row
,
Button
,
Tooltip
}
from
'react-bootstrap'
;
import
{
Card
,
Col
,
Row
,
Button
}
from
'react-bootstrap'
;
import
{
FaMoneyBillAlt
,
FaArrowUp
,
FaArrowDown
,
FaUserFriends
,
FaFileCsv
}
from
'react-icons/fa'
;
import
{
FaMoneyBillAlt
,
FaArrowUp
,
FaArrowDown
,
FaUserFriends
,
FaFileCsv
}
from
'react-icons/fa'
;
import
{
AreaChart
,
Area
,
XAxis
,
YAxis
,
ResponsiveContainer
}
from
'recharts'
;
import
{
AreaChart
,
Area
,
XAxis
,
YAxis
,
ResponsiveContainer
,
Tooltip
}
from
'recharts'
;
import
withWindowDimensions
from
'../utils/withWindowDimensions'
;
import
withWindowDimensions
from
'../utils/withWindowDimensions'
;
import
{
CSVLink
}
from
'react-csv'
;
import
{
CSVLink
}
from
'react-csv'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
...
@@ -88,7 +88,11 @@ const DataCard = props => {
...
@@ -88,7 +88,11 @@ const DataCard = props => {
{
data
.
detail
.
map
((
item
,
index
)
=>
{
data
.
detail
.
map
((
item
,
index
)
=>
data
.
detail
.
length
===
1
?
(
data
.
detail
.
length
===
1
?
(
<
Col
key
=
{
index
}
md
=
{
12
}
style
=
{{
marginTop
:
'.7em'
}}
>
<
Col
key
=
{
index
}
md
=
{
12
}
style
=
{{
marginTop
:
'.7em'
}}
>
<
SmCard
backgroundColor
=
{
data
.
backgroundColor
}
smitem
=
{
item
}
datavalue
=
{
props
.
datavalue
[
index
]}
/
>
<
SmCard
backgroundColor
=
{
data
.
backgroundColor
}
smitem
=
{
item
}
datavalue
=
{
props
.
datavalue
[
index
]}
/
>
<
/Col
>
<
/Col
>
)
:
(
)
:
(
<
Col
<
Col
...
@@ -100,7 +104,11 @@ const DataCard = props => {
...
@@ -100,7 +104,11 @@ const DataCard = props => {
paddingRight
:
!
props
.
isMobileSized
?
(
index
%
2
!==
0
?
'15px'
:
'7.5px'
)
:
'15px'
,
paddingRight
:
!
props
.
isMobileSized
?
(
index
%
2
!==
0
?
'15px'
:
'7.5px'
)
:
'15px'
,
}}
}}
>
>
<
SmCard
backgroundColor
=
{
data
.
backgroundColor
}
smitem
=
{
item
}
datavalue
=
{
props
.
datavalue
[
index
]}
/
>
<
SmCard
backgroundColor
=
{
data
.
backgroundColor
}
smitem
=
{
item
}
datavalue
=
{
props
.
datavalue
[
index
]}
/
>
<
/Col
>
<
/Col
>
)
)
)}
)}
...
...
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