Resolve "don't show temperature chart part of chart when temp not tracked"
This commit is contained in:
committed by
Sofiya Tepikin
parent
620f5e77da
commit
ee0b83d1ca
@@ -1,4 +1,5 @@
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { View } from 'react-native'
|
||||
|
||||
import AppText from '../app-text'
|
||||
@@ -9,9 +10,9 @@ import { cycleDayColor } from '../../styles'
|
||||
|
||||
import { shared as labels } from '../../i18n/en/labels'
|
||||
|
||||
const ChartLegend = () => {
|
||||
const ChartLegend = ({ xAxisHeight }) => {
|
||||
return (
|
||||
<View style={[styles.yAxis, styles.chartLegend]}>
|
||||
<View style={[styles.yAxis, styles.chartLegend, {height: xAxisHeight}]}>
|
||||
<DripHomeIcon
|
||||
name="circle"
|
||||
size={styles.yAxis.width - 7}
|
||||
@@ -24,4 +25,8 @@ const ChartLegend = () => {
|
||||
)
|
||||
}
|
||||
|
||||
ChartLegend.propTypes = {
|
||||
xAxisHeight: PropTypes.number.isRequired
|
||||
}
|
||||
|
||||
export default ChartLegend
|
||||
|
||||
Reference in New Issue
Block a user