aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-20 17:10:33 -0400
committerIvan Chen <ivan@tagg.id>2021-04-20 17:21:36 -0400
commit5ff7cab4bd36337b2c86e3d4915a6fc3ceef1ddb (patch)
tree1620cc8ff132043aca30f8f0998d77a3ecc1add9 /src/components
parent5946e667c55de4ee4e9d5d64ad6e5f3eb5e123dd (diff)
linted
Diffstat (limited to 'src/components')
-rw-r--r--src/components/comments/CommentTile.tsx6
-rw-r--r--src/components/profile/Friends.tsx4
2 files changed, 4 insertions, 6 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 />
diff --git a/src/components/profile/Friends.tsx b/src/components/profile/Friends.tsx
index b754b71a..a7a06567 100644
--- a/src/components/profile/Friends.tsx
+++ b/src/components/profile/Friends.tsx
@@ -1,4 +1,3 @@
-import {useNavigation} from '@react-navigation/native';
import React, {useEffect, useState} from 'react';
import {ScrollView, StyleSheet, Text, View} from 'react-native';
import {checkPermission} from 'react-native-contacts';
@@ -21,14 +20,13 @@ import {ProfilePreview} from '../profile';
interface FriendsProps {
result: Array<ProfilePreviewType>;
screenType: ScreenType;
- userId: string;
+ userId: string | undefined;
}
const Friends: React.FC<FriendsProps> = ({result, screenType, userId}) => {
const state: RootState = useStore().getState();
const dispatch = useDispatch();
const {user: loggedInUser = NO_USER} = state.user;
- const navigation = useNavigation();
const [usersFromContacts, setUsersFromContacts] = useState<
ProfilePreviewType[]
>([]);