File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,11 @@ import Slider from 'rc-slider';
3
3
import Tooltip from 'rc-tooltip' ;
4
4
import { changeSlider , pause } from '../actions/actions' ;
5
5
import { useStoreContext } from '../store' ;
6
+ import { HandleProps , MainSliderProps } from '../components/FrontendTypes' ;
6
7
7
8
const { Handle } = Slider ;
8
9
9
- interface handleProps {
10
- value : number ;
11
- dragging : boolean ;
12
- index : number ;
13
- }
14
-
15
- const handle = ( props : handleProps ) => {
10
+ const handle = ( props : HandleProps ) : JSX . Element => {
16
11
const { value, dragging, index, ...restProps } = props ;
17
12
18
13
return (
@@ -28,11 +23,8 @@ const handle = (props: handleProps) => {
28
23
) ;
29
24
} ;
30
25
31
- interface MainSliderProps {
32
- snapshotsLength : number ;
33
- }
34
26
35
- function MainSlider ( props : MainSliderProps ) {
27
+ function MainSlider ( props : MainSliderProps ) : JSX . Element {
36
28
const { snapshotsLength } = props ;
37
29
const [ { tabs, currentTab } , dispatch ] = useStoreContext ( ) ;
38
30
const { currLocation } = tabs [ currentTab ] ;
You can’t perform that action at this time.
0 commit comments