Redesign chart

This commit is contained in:
Maria Zadnepryanets
2020-08-01 11:37:20 +00:00
committed by Sofiya Tepikin
parent 550b1e6314
commit ef16cfd041
27 changed files with 718 additions and 575 deletions
@@ -11,7 +11,7 @@ import styles from '../../../styles'
import { getPreviousTemperature } from '../../../db'
import { scaleObservable } from '../../../local-storage'
import config from '../../../config'
import { TEMP_MAX, TEMP_MIN } from '../../../config'
export default class TemperatureInput extends Component {
@@ -86,8 +86,7 @@ const OutOfRangeWarning = ({ temperature }) => {
}
const value = Number(temperature)
const { min, max } = config.temperatureScale
const range = { min, max }
const range = { min: TEMP_MIN, max: TEMP_MAX }
const scale = scaleObservable.value
let warningMsg