Skip to content

Commit 18f1149

Browse files
committed
feat: migrate AssetDownloadImage to tailwind
1 parent 77c4f5e commit 18f1149

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/AssetDownload/AssetDownloadImage.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
import { Center } from "@chakra-ui/react"
1+
import { ImageProps } from "next/image"
22

3-
import { Image, type ImageProps } from "@/components/Image"
3+
import { TwImage } from "../Image"
4+
import { Center } from "../ui/flex"
45

56
interface AssetDownloadImageProps {
67
image: ImageProps["src"]
78
alt: string
89
}
910

1011
const AssetDownloadImage = ({ image, alt }: AssetDownloadImageProps) => (
11-
<Center border="1px" borderColor="white700" p="8" w="full">
12-
<Image src={image} alt={alt} w="full" alignSelf="center" />
12+
<Center className="w-full border border-[#e5e5e5] p-8">
13+
<TwImage src={image} alt={alt} className="w-full self-center" />
1314
</Center>
1415
)
1516

0 commit comments

Comments
 (0)