Fix FurnitureBackgroundColorView

This commit is contained in:
MyNameIsBatman 2022-11-09 01:36:27 -03:00
parent 306440c9de
commit f1c2e4a992

View File

@ -20,7 +20,7 @@ export const FurnitureBackgroundColorView: FC<{}> = props =>
<ReactSlider <ReactSlider
className={ 'nitro-slider' } className={ 'nitro-slider' }
min={ 0 } min={ 0 }
max={ 360 } max={ 255 }
value={ hue } value={ hue }
onChange={ event => setHue(event) } onChange={ event => setHue(event) }
thumbClassName={ 'thumb degree' } thumbClassName={ 'thumb degree' }
@ -31,10 +31,10 @@ export const FurnitureBackgroundColorView: FC<{}> = props =>
<ReactSlider <ReactSlider
className={ 'nitro-slider' } className={ 'nitro-slider' }
min={ 0 } min={ 0 }
max={ 100 } max={ 255 }
value={ saturation } value={ saturation }
onChange={ event => setSaturation(event) } onChange={ event => setSaturation(event) }
thumbClassName={ 'thumb percent' } thumbClassName={ 'thumb degree' }
renderThumb={ (props, state) => <div { ...props }>{ state.valueNow }</div> } /> renderThumb={ (props, state) => <div { ...props }>{ state.valueNow }</div> } />
</Column> </Column>
<Column> <Column>
@ -42,10 +42,10 @@ export const FurnitureBackgroundColorView: FC<{}> = props =>
<ReactSlider <ReactSlider
className={ 'nitro-slider' } className={ 'nitro-slider' }
min={ 0 } min={ 0 }
max={ 100 } max={ 255 }
value={ lightness } value={ lightness }
onChange={ event => setLightness(event) } onChange={ event => setLightness(event) }
thumbClassName={ 'thumb percent' } thumbClassName={ 'thumb degree' }
renderThumb={ (props, state) => <div { ...props }>{ state.valueNow }</div> } /> renderThumb={ (props, state) => <div { ...props }>{ state.valueNow }</div> } />
</Column> </Column>
</Column> </Column>