aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/Followers.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/profile/Followers.tsx')
-rw-r--r--src/components/profile/Followers.tsx10
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}
/>
))}
</>