Skip to content

Commit 378dc64

Browse files
committed
fix(dashbored): Replace Image component with native img tag
1 parent 7b3d7cb commit 378dc64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/component/dashbored/dashbored.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {UserDashBored, } from "@/server/types";
22
import {UserButton} from "@/component/layout/userbtn";
33
import { Divider, Menu, MenuItem} from "@mantine/core";
44
import {useRouter} from "next/navigation";
5-
import Image from "next/image";
65

76
interface DashboredProps {
87
user: UserDashBored
@@ -39,7 +38,7 @@ export const Dashbored = ({user}: DashboredProps) => {
3938
}} className="item" key={index} onClick={() => {
4039
nav("/r/" + user.user.name + "/" + item.name)
4140
}}>
42-
<Image src={user.user.avatar || ""} alt={""} width={20} height={20} style={{
41+
<img src={user.user.avatar || ""} alt={""} width={20} height={20} style={{
4342
borderRadius: "50%"
4443
}}/>
4544
<div>

0 commit comments

Comments
 (0)