Shorten line length in temperature
This commit is contained in:
@@ -12,6 +12,8 @@ import { getPreviousTemperature, saveSymptom } from '../../../db'
|
|||||||
import styles from '../../../styles'
|
import styles from '../../../styles'
|
||||||
import { LocalTime, ChronoUnit } from 'js-joda'
|
import { LocalTime, ChronoUnit } from 'js-joda'
|
||||||
|
|
||||||
|
const MINUTES = ChronoUnit.MINUTES
|
||||||
|
|
||||||
export default class Temp extends Component {
|
export default class Temp extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props)
|
super(props)
|
||||||
@@ -32,7 +34,7 @@ export default class Temp extends Component {
|
|||||||
this.state = {
|
this.state = {
|
||||||
currentValue: initialValue,
|
currentValue: initialValue,
|
||||||
exclude: temp ? temp.exclude : false,
|
exclude: temp ? temp.exclude : false,
|
||||||
time: this.time || LocalTime.now().truncatedTo(ChronoUnit.MINUTES).toString(),
|
time: this.time || LocalTime.now().truncatedTo(MINUTES).toString(),
|
||||||
isTimePickerVisible: false
|
isTimePickerVisible: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user