🎨 styles: cart drawer

:%s
This commit is contained in:
lytrankieio123
2021-09-06 17:06:06 +07:00
parent 432c7b403c
commit fc39eb1758
26 changed files with 431 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
import React from 'react'
import s from './ImgWithLink.module.scss'
import Image from 'next/image'
export interface ImgWithLinkProps {
src: string,
@@ -8,8 +9,9 @@ export interface ImgWithLinkProps {
const ImgWithLink = ({ src, alt }: ImgWithLinkProps) => {
return (
<img className={s.imgWithLink} src={src} alt={alt} />
<div className={s.imgWithLink}>
<Image src={src} alt={alt} layout="fill" className={s.imgWithLink} />
</div>
)
}