chore: tweak follows you

This commit is contained in:
Kieran 2023-01-18 16:13:38 +00:00
parent ac8d3373cf
commit b76fc97929
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 6 additions and 13 deletions

View File

@ -21,7 +21,7 @@ export default function FollowsYou({ pubkey }: FollowsYouProps ) {
return (
<>
{ followsMe ? <div className="copy"><span className="body">follows you</span></div> : null }
{ followsMe ? <span className="pill">follows you</span> : null }
</>
)
}

View File

@ -51,14 +51,7 @@ export default function ProfilePage() {
<h2>{user?.display_name || user?.name || 'Nostrich'}</h2>
<Copy text={params.id || ""} />
{user?.nip05 && <Nip05 nip05={user.nip05} pubkey={user.pubkey} />}
{ followsYou() }
</div>
)
}
function followsYou(){
return (
<div className="flex">
<div className="f-grow">{ <FollowsYou pubkey={id}/> }</div>
<FollowsYou pubkey={id} />
</div>
)
}