Skip to content

Commit

Permalink
Merge pull request #29 from kumawatkaran523/main
Browse files Browse the repository at this point in the history
Replace <img> with Next.js <Image>
  • Loading branch information
ceilican authored Jan 7, 2025
2 parents f0d2328 + 9801643 commit b339de3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import React from "react";
import { useWallet } from "@/hooks/WalletConnectProvider";
import Image from "next/image";

function generateAvatar(walletAddress: string): string {
const baseUrl = "https://api.dicebear.com/6.x/identicon/svg";
Expand All @@ -20,7 +21,7 @@ const Avatar = () => {

return (
<div className="flex flex-col items-center">
<img
<Image
src={avatarUrl}
alt="User Avatar"
className="w-10 h-10 rounded-full border shadow-lg"
Expand Down

0 comments on commit b339de3

Please sign in to comment.