Clean up backgroundColor variable
This commit is contained in:
@@ -19,12 +19,12 @@ const TemperatureColumn = ({
|
||||
}) => {
|
||||
const x = CHART_STROKE_WIDTH / 2
|
||||
|
||||
const weekendBackgroundColor = isWeekend ? Colors.greyVeryLight : 'white'
|
||||
const backgroundColor = isWeekend ? Colors.greyVeryLight : 'white'
|
||||
return (
|
||||
<Surface
|
||||
width={CHART_COLUMN_WIDTH}
|
||||
height={columnHeight}
|
||||
style={{ ...styles.container, backgroundColor: weekendBackgroundColor }}
|
||||
style={{ backgroundColor: backgroundColor }}
|
||||
>
|
||||
<ChartLine path={new Path().lineTo(0, columnHeight)} />
|
||||
|
||||
@@ -69,10 +69,4 @@ TemperatureColumn.propTypes = {
|
||||
isWeekend: PropTypes.bool,
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
backgroundColor: 'white',
|
||||
},
|
||||
})
|
||||
|
||||
export default TemperatureColumn
|
||||
|
||||
Reference in New Issue
Block a user