New post view + fix moment location

This commit is contained in:
Adolfo Reyna
2022-12-22 23:06:21 -05:00
parent 3d50977520
commit 1c0dbbbe84
7 changed files with 156 additions and 27 deletions

View File

@@ -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"}
/> :
<></>
}
</>