aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/FollowCount.tsx
diff options
context:
space:
mode:
authorHusam Salhab <47015061+hsalhab@users.noreply.github.com>2020-10-26 18:42:02 -0400
committerGitHub <noreply@github.com>2020-10-26 18:42:02 -0400
commit17fbfa29c1b78703b872221e3b590aca3ef5cf7e (patch)
treeed3ede72471f117f7bb81da47b9e6276eaa01f55 /src/components/profile/FollowCount.tsx
parent61bcb48511095d5568a013429b0092c57659df0e (diff)
[TMA-13] List of following (#72)
* move async-storage * removed lock files * added lock files to gitignore * added the wrong file to gitignore * added following list * added numFollowers; removed redundant code * removed followercount stuff for now * Fixed follower count * Made come more changes Co-authored-by: Ashm Walia <ashmwalia@outlook.com>
Diffstat (limited to 'src/components/profile/FollowCount.tsx')
-rw-r--r--src/components/profile/FollowCount.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/profile/FollowCount.tsx b/src/components/profile/FollowCount.tsx
index a3f9f34d..9cace17d 100644
--- a/src/components/profile/FollowCount.tsx
+++ b/src/components/profile/FollowCount.tsx
@@ -15,6 +15,7 @@ const FollowCount: React.FC<FollowCountProps> = ({
count,
isProfileView,
}) => {
+ const navigation = useNavigation();
const displayed: string =
count < 5e3
? `${count}`
@@ -23,12 +24,12 @@ const FollowCount: React.FC<FollowCountProps> = ({
: count < 1e6
? `${(count / 1e3).toFixed(0)}k`
: `${count / 1e6}m`;
- const navigation = useNavigation();
return (
<TouchableOpacity
onPress={() =>
navigation.navigate('FollowersListScreen', {
isProfileView: isProfileView,
+ isFollowers: mode === 'followers',
})
}>
<View style={[styles.container, style]}>