fix warnings

This commit is contained in:
Фролов 2021-05-28 14:37:54 +05:00
parent eee22ee4ff
commit 1db98b79e0

View File

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