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';
33
44import styles from './SwipeableList.css' ;
55
6- const SwipeableList = ( { children } ) => {
6+ const SwipeableList = ( { children, threshold } ) => {
77 const [ blockSwipe , setBlockSwipe ] = useState ( false ) ;
88
99 useEffect ( ( ) => {
@@ -31,14 +31,15 @@ const SwipeableList = ({ children }) => {
3131 data-testid = "list-wrapper"
3232 >
3333 { React . Children . map ( children , child =>
34- React . cloneElement ( child , { blockSwipe } )
34+ React . cloneElement ( child , { blockSwipe, threshold } )
3535 ) }
3636 </ div >
3737 ) ;
3838} ;
3939
4040SwipeableList . propTypes = {
41- children : PropTypes . node
41+ children : PropTypes . node ,
42+ threshold : PropTypes . number
4243} ;
4344
4445export default SwipeableList ;
You can’t perform that action at this time.
0 commit comments