Added Image to Avatartsx
This commit is contained in:
parent
43d161b3d1
commit
6d5531c587
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
import Image from "next/image";
|
||||
|
||||
type Props = {
|
||||
name: string;
|
||||
picture: string;
|
||||
|
@ -6,7 +8,7 @@ type Props = {
|
|||
const Avatar = ({ name, picture }: Props) => {
|
||||
return (
|
||||
<div className="flex items-center">
|
||||
<img src={picture} className="w-12 h-12 rounded-full mr-4" alt={name} />
|
||||
<Image src={picture} className="w-12 h-12 rounded-full mr-4" alt={name} />
|
||||
<div className="text-xl font-bold">{name}</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue