Implement a couple missing bits

This commit is contained in:
Paul Frazee 2022-10-04 10:53:08 -05:00
parent c5ab005908
commit bf39791f01
8 changed files with 81 additions and 24 deletions

View file

@ -1,4 +1,5 @@
import React, {useEffect} from 'react'
import {StyleSheet, Text, View} from 'react-native'
import {ProfileFollowers as ProfileFollowersComponent} from '../com/profile/ProfileFollowers'
import {ScreenParams} from '../routes'
import {useStores} from '../../state'
@ -9,9 +10,22 @@ export const ProfileFollowers = ({visible, params}: ScreenParams) => {
useEffect(() => {
if (visible) {
store.nav.setTitle('Followers of')
store.nav.setTitle(`Followers of ${name}`)
}
}, [store, visible])
}, [store, visible, name])
return <ProfileFollowersComponent name={name} />
return (
<View>
<Text style={styles.title}>Followers of {name}</Text>
<ProfileFollowersComponent name={name} />
</View>
)
}
const styles = StyleSheet.create({
title: {
fontSize: 21,
fontWeight: 'bold',
padding: 10,
},
})