mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 00:50:50 +01:00
Fix FurnitureBackgroundColorView
This commit is contained in:
parent
306440c9de
commit
f1c2e4a992
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user