Remove state from gauge

pull/10616/head
Alex P 2017-11-17 08:20:58 -08:00
parent fbb63f2702
commit e71c8c7fb7
1 changed files with 1 additions and 6 deletions

View File

@ -9,10 +9,6 @@ import {
class Gauge extends Component {
constructor(props) {
super(props)
this.state = {
gaugePosition: this.props.gaugePosition,
}
}
componentDidMount() {
@ -299,8 +295,7 @@ class Gauge extends Component {
}
drawNeedle = (ctx, radius) => {
const {minValue, maxValue} = this.props
const {gaugePosition} = this.state
const {minValue, maxValue, gaugePosition} = this.props
const {degree} = GAUGE_SPECS
const arcDistance = Math.PI * 1.5