Skip to content
Snippets Groups Projects
Commit 5fdcf788 authored by Yusuf Akgül's avatar Yusuf Akgül :hatching_chick:
Browse files

user follow list item

parent e7f728bf
No related branches found
No related tags found
2 merge requests!15Following,!14Following
Pipeline #35492 failed
import { User } from "@/components/ui/user";
import Image from "next/image"; import Image from "next/image";
import Link from "next/link"; import Link from "next/link";
import FollowButton from "./following-button";
// this is a single user helper-component, only for design purposes // this is a single user helper-component, only for design purposes
export default function User({ id, userName, image }: { id: number, userName: string, image: { url: string } }) { export default function FollowUser({ id, followId, userName, image }: { id: number, followId: number, userName: string, image: { url: string } }) {
return ( return (
<User> <div>
<Link href={`/user/${id}`}> <Link href={`/user/${id}`}>
<div className=""> <div className="">
<Image <Image
src={image.url} src={image.url}
alt={userName} alt={userName}
width={264} width={50}
height={374} height={50}
priority={true} priority={true} />
style={{ width: '100%', height: '100%' }} />
</div> </div>
<p>{userName}</p>
<FollowButton userId={id} followerId={followId} />
</Link> </Link>
<p className="truncate">{userName}</p> </div>
</User>
) )
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment