Redesign chart

This commit is contained in:
Maria Zadnepryanets authored and Sofiya Tepikin committed 2020-08-22 13:06:50 +02:00
1 parent 550b1e6314
commit ef16cfd041
27 files changed
+718 -575

No files matched your search

@@ -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