mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-24 06:37:16 -04:00
Fix #1893
This commit is contained in:
parent
be93a92a35
commit
3958986614
1 changed files with 3 additions and 2 deletions
|
@ -130,15 +130,16 @@ type SliderProps = BaseInput<number> &
|
|||
|
||||
export const Slider: FunctionComponent<SliderProps> = (props) => {
|
||||
const { value, update, rest } = useBaseInput(props);
|
||||
const { label, ...sliderProps } = rest;
|
||||
|
||||
const { min = 0, max = 100 } = props;
|
||||
|
||||
const marks = useSliderMarks([min, max]);
|
||||
|
||||
return (
|
||||
<InputWrapper label={rest.label}>
|
||||
<InputWrapper label={label}>
|
||||
<MantineSlider
|
||||
{...rest}
|
||||
{...sliderProps}
|
||||
marks={marks}
|
||||
onChange={update}
|
||||
value={value ?? 0}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue