forked from ddrilling/asb_cloud_front
fix warnings
This commit is contained in:
parent
eee22ee4ff
commit
1db98b79e0
@ -25,15 +25,18 @@ export const ValueDisplay = ({prefix, value, suffix, isArrowVisible}) =>{
|
||||
setVal(value)
|
||||
}
|
||||
|
||||
},[value])
|
||||
},[value, isArrowVisible, oldVal])
|
||||
|
||||
let arrow = null
|
||||
switch (arrowState){
|
||||
case 1:
|
||||
arrow = <CaretUpOutlined style={{color:"red"}}/>
|
||||
break;
|
||||
break
|
||||
case -1:
|
||||
arrow = <CaretDownOutlined style={{color:"red"}}/>
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
|
||||
return(<span className='display_value'>{prefix} {val} {suffix}{arrow}</span>)
|
||||
|
Loading…
Reference in New Issue
Block a user