diff options
author | Husam Salhab <47015061+hsalhab@users.noreply.github.com> | 2020-10-26 18:42:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 18:42:02 -0400 |
commit | 17fbfa29c1b78703b872221e3b590aca3ef5cf7e (patch) | |
tree | ed3ede72471f117f7bb81da47b9e6276eaa01f55 /src/components/profile/Followers.tsx | |
parent | 61bcb48511095d5568a013429b0092c57659df0e (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/Followers.tsx')
-rw-r--r-- | src/components/profile/Followers.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/profile/Followers.tsx b/src/components/profile/Followers.tsx index e0fee303..bee02e07 100644 --- a/src/components/profile/Followers.tsx +++ b/src/components/profile/Followers.tsx @@ -6,11 +6,11 @@ import {useNavigation} from '@react-navigation/native'; import {Button} from 'react-native-elements'; interface FollowersListProps { - followers: Array<ProfilePreviewType>; + result: Array<ProfilePreviewType>; sectionTitle: string; } -const Followers: React.FC<FollowersListProps> = ({followers}) => { +const Followers: React.FC<FollowersListProps> = ({result, sectionTitle}) => { const navigation = useNavigation(); return ( <> @@ -23,14 +23,14 @@ const Followers: React.FC<FollowersListProps> = ({followers}) => { navigation.goBack(); }} /> - <Text style={styles.title}>{'Followers'}</Text> + <Text style={styles.title}>{sectionTitle}</Text> </View> - {followers.map((profilePreview) => ( + {result.map((profilePreview) => ( <ProfilePreview style={styles.follower} key={profilePreview.id} {...{profilePreview}} - isComment={false} + isComment={true} /> ))} </> |