updated profile page

This commit is contained in:
Ren Amamiya
2023-03-25 17:50:15 +07:00
parent 17bcaa1a48
commit dbe9985739
5 changed files with 59 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
import { RelayContext } from '@components/relaysProvider';
import { UserFollow } from '@components/user/follow';
import { relaysAtom } from '@stores/relays';
@@ -19,8 +20,8 @@ export default function ProfileFollowers({ id }: { id: string }) {
}, [id, pool, relays]);
return (
<div className="flex flex-col gap-3 py-5">
{followers && followers.map((follower, index) => <p key={index}>{follower[1]}</p>)}
<div className="flex flex-col gap-3 px-3 py-5">
{followers && followers.map((follower) => <UserFollow key={follower[1]} pubkey={follower[1]} />)}
</div>
);
}