Skip to content

Commit 66f5222

Browse files
committed
withfallbackのdaisyUI移行
1 parent 48ec884 commit 66f5222

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

web/components/human/WithFallback.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Avatar } from "@mui/material";
21
import { ImageFallback } from "../ImageFallback";
32

43
type Props = {
@@ -14,8 +13,13 @@ export function AvatarWithFallback({ width, height, url }: Props) {
1413
height={height}
1514
url={url}
1615
fallback={
17-
<Avatar
18-
sx={{ width: `${width}`, height: `${height}`, objectFit: "cover" }}
16+
<div
17+
className="flex items-center justify-center overflow-hidden rounded-full bg-gray-200"
18+
style={{
19+
width: width,
20+
height: height,
21+
objectFit: "cover",
22+
}}
1923
/>
2024
}
2125
/>

0 commit comments

Comments
 (0)