@@ -7,6 +7,7 @@ import '@sandstreamdev/react-swipeable-list/dist/styles.css';
77
88import BasicListItem from '../list-items/BasicListItem' ;
99import BasicSwipeContent from '../list-items/BasicSwipeContent' ;
10+
1011import './BasicExample.css' ;
1112
1213const BasicExample = ( ) => {
@@ -15,12 +16,12 @@ const BasicExample = () => {
1516 const [ swipeAction , handleSwipeAction ] = useState ( 'None' ) ;
1617
1718 const swipeRightOptions = name => ( {
18- content : < BasicSwipeContent direction = "left" label = "Left content" /> ,
19+ content : < BasicSwipeContent label = "Left content" position = "left " /> ,
1920 action : ( ) => triggerItemAction ( `Swipe right action on "${ name } "` )
2021 } ) ;
2122
2223 const swipeLeftOptions = name => ( {
23- content : < BasicSwipeContent direction = "right" label = "Right content" /> ,
24+ content : < BasicSwipeContent label = "Right content" position = "right " /> ,
2425 action : ( ) => triggerItemAction ( `Swipe left action on "${ name } "` )
2526 } ) ;
2627
@@ -62,7 +63,7 @@ const BasicExample = () => {
6263 onSwipeProgress = { handleSwipeProgress }
6364 onSwipeStart = { handleSwipeStart }
6465 >
65- < BasicListItem label = "Item with both swipes" /> { ' ' }
66+ < BasicListItem label = "Item with both swipes" />
6667 </ SwipeableListItem >
6768 < SwipeableListItem >
6869 < BasicListItem label = "Item without swipe actions" />
0 commit comments