diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-20 17:10:33 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-04-20 17:21:36 -0400 |
commit | 5ff7cab4bd36337b2c86e3d4915a6fc3ceef1ddb (patch) | |
tree | 1620cc8ff132043aca30f8f0998d77a3ecc1add9 /src/components/comments | |
parent | 5946e667c55de4ee4e9d5d64ad6e5f3eb5e123dd (diff) |
linted
Diffstat (limited to 'src/components/comments')
-rw-r--r-- | src/components/comments/CommentTile.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/comments/CommentTile.tsx b/src/components/comments/CommentTile.tsx index be113523..34eef418 100644 --- a/src/components/comments/CommentTile.tsx +++ b/src/components/comments/CommentTile.tsx @@ -108,7 +108,7 @@ const CommentTile: React.FC<CommentTileProps> = ({ ? `Replies (${comment_object.replies_count})` : 'Replies'; - const renderRightAction = (text: string, color: string, progress) => { + const renderRightAction = (text: string, color: string) => { const pressHandler = async () => { swipeRef.current?.close(); const success = await deleteComment(comment_object.comment_id, isThread); @@ -130,10 +130,10 @@ const CommentTile: React.FC<CommentTileProps> = ({ ); }; - const renderRightActions = (progress: Animated.AnimatedInterpolation) => + const renderRightActions = (_: Animated.AnimatedInterpolation) => canDelete ? ( <View style={styles.swipeActions}> - {renderRightAction('Delete', '#c42634', progress)} + {renderRightAction('Delete', '#c42634')} </View> ) : ( <Fragment /> |