From 52b9b3fb910e32974bd1b96ee0b77a589d7f3a9e Mon Sep 17 00:00:00 2001 From: rohitmalhotra1420 Date: Wed, 11 Sep 2024 14:00:06 +0530 Subject: [PATCH] removed defaultValue prop from slider --- src/blocks/slider/Slider.tsx | 11 ++--------- src/blocks/slider/Slider.types.ts | 1 - 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/blocks/slider/Slider.tsx b/src/blocks/slider/Slider.tsx index 4fc4fafc85..ff38550150 100644 --- a/src/blocks/slider/Slider.tsx +++ b/src/blocks/slider/Slider.tsx @@ -39,17 +39,10 @@ const StyledSlider = styled(ReactSlider)<{ range?: boolean }>` `} `; -const Slider = ({ - min, - max, - onChange, - value, - step, - defaultValue, -}: SliderProps) => { +const Slider = ({ min, max, onChange, value, step }: SliderProps) => { return ( = SliderBaseProps & { value?: T; onChange: (value: T) => void; - defaultValue?: T; };