aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-22 14:32:15 -0400
committerGitHub <noreply@github.com>2021-04-22 14:32:15 -0400
commitf0cff95cfa612b295caf68552bc3d29a7fb23a42 (patch)
treedd3df697478a19048cd4bf6d0b499a91c1a93eb3 /src/components/comments
parent4e8e1c0d58424e6b63cfb8470fc0a73c0e6b102b (diff)
parent33c172cc31957966b14321520c56816ba044db14 (diff)
Merge pull request #374 from IvanIFChen/hotfix-linting-fixup
[HOTFIX] Linter fixup
Diffstat (limited to 'src/components/comments')
-rw-r--r--src/components/comments/CommentTile.tsx6
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 />