We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb29761 commit a909caaCopy full SHA for a909caa
src/components/CardList.tsx
@@ -1,3 +1,4 @@
1
+import Image, { type ImageProps } from "next/image"
2
import type { ReactNode } from "react"
3
import {
4
Box,
@@ -10,7 +11,6 @@ import {
10
11
useColorModeValue,
12
} from "@chakra-ui/react"
13
-import { Image, type ImageProps } from "@/components/Image"
14
import { BaseLink } from "@/components/Link"
15
16
import * as url from "@/lib/utils/url"
@@ -62,14 +62,7 @@ const Card = ({
62
63
return (
64
<CardContainer {...props}>
65
- {image && (
66
- <Image
67
- src={image}
68
- alt={alt ?? ""}
69
- sizes="20px"
70
- style={{ width: "20px", height: "auto" }}
71
- />
72
- )}
+ {image && <Image src={image} alt={alt ?? ""} width={20} />}
73
<Flex flex="1 1 75%" direction="column">
74
{isLink ? (
75
<LinkOverlay
0 commit comments