style(): fix shadowed vars (#24609)

This commit is contained in:
Amanda Smith
2022-01-20 10:56:33 -06:00
committed by GitHub
parent af0135ce7d
commit f295134624
5 changed files with 14 additions and 13 deletions

View File

@ -552,8 +552,8 @@ interface RangeKnob {
handleKeyboard: (name: KnobName, isIncrease: boolean) => void;
}
const renderKnob = (isRTL: boolean, { knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard, labelText, pinFormatter }: RangeKnob) => {
const start = isRTL ? 'right' : 'left';
const renderKnob = (rtl: boolean, { knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard, labelText, pinFormatter }: RangeKnob) => {
const start = rtl ? 'right' : 'left';
const knobStyle = () => {
const style: any = {};