mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Fix next/image
This commit is contained in:
parent
f4abd321c8
commit
1ef5f14a0a
@ -1,6 +1,6 @@
|
||||
import { ChangeEvent, FocusEventHandler, useEffect, useState } from 'react'
|
||||
import cn from 'clsx'
|
||||
import Image from 'next/image'
|
||||
import Image from 'next/legacy/image'
|
||||
import Link from 'next/link'
|
||||
import s from './CartItem.module.css'
|
||||
import { useUI } from '@components/ui/context'
|
||||
|
@ -52,6 +52,7 @@ const HomeAllProductsGrid: FC<Props> = ({
|
||||
product={product}
|
||||
variant="simple"
|
||||
imgProps={{
|
||||
alt: product.name,
|
||||
width: 480,
|
||||
height: 480,
|
||||
}}
|
||||
|
@ -5,7 +5,7 @@ import { useRouter } from 'next/router'
|
||||
import s from './I18nWidget.module.css'
|
||||
import { Cross, ChevronUp } from '@components/icons'
|
||||
import ClickOutside from '@lib/click-outside'
|
||||
import Image from 'next/image'
|
||||
import Image from 'next/legacy/image'
|
||||
interface LOCALE_DATA {
|
||||
name: string
|
||||
img: {
|
||||
|
@ -3,7 +3,7 @@ import cn from 'clsx'
|
||||
import Link from 'next/link'
|
||||
import type { Product } from '@commerce/types/product'
|
||||
import s from './ProductCard.module.css'
|
||||
import Image, { ImageProps } from 'next/image'
|
||||
import Image, { ImageProps } from 'next/legacy/image'
|
||||
import WishlistButton from '@components/wishlist/WishlistButton'
|
||||
import usePrice from '@framework/product/use-price'
|
||||
import ProductTag from '../ProductTag'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import cn from 'clsx'
|
||||
import Image from 'next/image'
|
||||
import Image from 'next/legacy/image'
|
||||
import s from './ProductView.module.css'
|
||||
import { FC } from 'react'
|
||||
import type { Product } from '@commerce/types/product'
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { FC, useState } from 'react'
|
||||
import cn from 'clsx'
|
||||
import Link from 'next/link'
|
||||
import Image from 'next/image'
|
||||
import Image from 'next/legacy/image'
|
||||
import s from './WishlistCard.module.css'
|
||||
import { Trash } from '@components/icons'
|
||||
import { Button, Text } from '@components/ui'
|
||||
|
@ -23,8 +23,8 @@
|
||||
"@components/*": ["components/*"],
|
||||
"@commerce": ["../packages/commerce/src"],
|
||||
"@commerce/*": ["../packages/commerce/src/*"],
|
||||
"@framework": ["../packages/shopify/src"],
|
||||
"@framework/*": ["../packages/shopify/src/*"]
|
||||
"@framework": ["../packages/local/src"],
|
||||
"@framework/*": ["../packages/local/src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user