New post view + fix moment location
This commit is contained in:
@@ -44,7 +44,7 @@ const unfollowProfile = async (profileid, me, setFollowing, setPending) => {
|
||||
}
|
||||
|
||||
|
||||
let FollowButton = ({ profile }) => {
|
||||
let FollowButton = ({ profile, iconSize }) => {
|
||||
const viewer = useSnapshot(GlobalState).me;
|
||||
const [following, setFollowing] = useState(false);
|
||||
const [pending, setPending] = useState(false);
|
||||
@@ -70,9 +70,11 @@ let FollowButton = ({ profile }) => {
|
||||
{
|
||||
profile._id && profile._id !== viewer._id ?
|
||||
<IconButton
|
||||
mode='outlined'
|
||||
icon={following ? 'person-remove' : 'person-add'}
|
||||
onPress={toggleFollowThisProfile} /> :
|
||||
onPress={toggleFollowThisProfile}
|
||||
size={iconSize || 25}
|
||||
iconColor={following ? "#c44d56" : "#93faa5"}
|
||||
/> :
|
||||
<></>
|
||||
}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user