From ea1670f6e05d22c516d364072b7dde9bf3ebb5ae Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 1 Sep 2022 11:18:13 +0300 Subject: Extract playback slots to config --- src/Slider.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Slider.tsx') diff --git a/src/Slider.tsx b/src/Slider.tsx index 4d287a2..50223fc 100644 --- a/src/Slider.tsx +++ b/src/Slider.tsx @@ -1,5 +1,6 @@ import React from "react"; import RcSlider, { SliderProps, SliderRef } from 'rc-slider/lib/Slider'; +import { PLAYBACK_SLOTS } from "./config"; // use workaround from: https://github.com/react-component/slider/issues/835#issuecomment-1201805736 const CustomSlider = RcSlider as React.ForwardRefExoticComponent & React.RefAttributes>; @@ -32,7 +33,7 @@ export function Slider({ playback, slider, setSlider }: GeshemSliderProps) {