File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
4
4
import styles from './SwipeableList.css' ;
5
5
6
- const SwipeableList = ( { children } ) => {
6
+ const SwipeableList = ( { children, threshold } ) => {
7
7
const [ blockSwipe , setBlockSwipe ] = useState ( false ) ;
8
8
9
9
useEffect ( ( ) => {
@@ -31,14 +31,15 @@ const SwipeableList = ({ children }) => {
31
31
data-testid = "list-wrapper"
32
32
>
33
33
{ React . Children . map ( children , child =>
34
- React . cloneElement ( child , { blockSwipe } )
34
+ React . cloneElement ( child , { blockSwipe, threshold } )
35
35
) }
36
36
</ div >
37
37
) ;
38
38
} ;
39
39
40
40
SwipeableList . propTypes = {
41
- children : PropTypes . node
41
+ children : PropTypes . node ,
42
+ threshold : PropTypes . number
42
43
} ;
43
44
44
45
export default SwipeableList ;
You can’t perform that action at this time.
0 commit comments