Skip to content

Commit

Permalink
fix: remove Swipeable from hierarchy if the feature flag is false
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 committed Jan 16, 2025
1 parent 07d33a6 commit 094d63b
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,7 @@ const MessageSimpleWithContext = <
swipeableRef.current.close();
}}
ref={swipeableRef}
renderLeftActions={() => {
return MessageSwipeContent ? <MessageSwipeContent /> : null;
}}
renderLeftActions={() => (MessageSwipeContent ? <MessageSwipeContent /> : null)}
>
{renderMessageBubble}
</Swipeable>
Expand All @@ -294,9 +292,7 @@ const MessageSimpleWithContext = <
swipeableRef.current.close();
}}
ref={swipeableRef}
renderRightActions={() => {
return MessageSwipeContent ? <MessageSwipeContent /> : null;
}}
renderRightActions={() => (MessageSwipeContent ? <MessageSwipeContent /> : null)}
rightThreshold={100}
>
{renderMessageBubble}
Expand Down

0 comments on commit 094d63b

Please sign in to comment.