Skip to content

Commit

Permalink
Remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMHasperhoven committed Nov 27, 2024
1 parent 181375b commit 364e42d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/ui/src/Slider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,13 @@ export const Slider: React.FC<SliderProps> = ({
disabled = false,
}) => {
const [value, setValue] = useState(valueProp || defaultValue);
console.log('TCL: value', value);
const handleValueChange = (newValue: number[]) => {
const updatedValue = newValue[0] ?? defaultValue;
setValue(updatedValue);
onChange?.(updatedValue);
};

useEffect(() => {
console.log('TCL: valueProp', valueProp);
setValue(valueProp);
}, [valueProp]);

Expand Down

0 comments on commit 364e42d

Please sign in to comment.