Feat: add new style to percentage chart

This commit is contained in:
Cesar 2021-01-06 16:39:36 +00:00 committed by Josh Harvey
parent cc14f37b6d
commit b8d55e82c4
2 changed files with 27 additions and 7 deletions

View file

@ -3,12 +3,7 @@ import classnames from 'classnames'
import React from 'react'
import { ReactComponent as CashIn } from 'src/styling/icons/direction/cash-in.svg'
import { ReactComponent as CashOut } from 'src/styling/icons/direction/cash-out.svg'
import {
zircon,
fontSize3,
fontSecondary,
fontColor
} from 'src/styling/variables'
import { fontSize3, fontSecondary, fontColor } from 'src/styling/variables'
const styles = {
wrapper: {
@ -17,7 +12,6 @@ const styles = {
marginTop: -8
},
percentageBox: {
backgroundColor: zircon,
height: 130,
borderRadius: 4,
display: 'flex',

View file

@ -223,4 +223,30 @@ const SystemPerformance = () => {
)
}
/**
<Grid item xs={4}>
<div style={{ display: 'flex' }}>
<Label2>Direction</Label2>
<div style={{ marginLeft: 8, display: 'flex' }}>
<div
style={{
width: 8,
height: 8,
borderRadius: 2,
marginTop: 18,
marginRight: 8,
backgroundColor: 'pink'
}}
/>
<p>In</p>
</div>
</div>
<Grid container>
<Grid item xs>
<PercentageChart data={getDirectionPercent()} />
</Grid>
</Grid>
</Grid>
*/
export default SystemPerformance