mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
Styling updates
This commit is contained in:
@@ -17,11 +17,13 @@ export async function getStaticProps({
|
||||
const config = { locale, locales }
|
||||
const { pages } = await commerce.getAllPages({ config, preview })
|
||||
const { categories } = await commerce.getSiteInfo({ config, preview })
|
||||
|
||||
const { product } = await commerce.getProduct({
|
||||
variables: { slug: params!.slug },
|
||||
config,
|
||||
preview,
|
||||
})
|
||||
console.log(product?.variants[0])
|
||||
|
||||
const { products: relatedProducts } = await commerce.getAllProducts({
|
||||
variables: { first: 4 },
|
||||
|
@@ -353,11 +353,7 @@ export default function Search({
|
||||
) : (
|
||||
<Grid layout="normal">
|
||||
{rangeMap(12, (i) => (
|
||||
<Skeleton
|
||||
key={i}
|
||||
className="w-full animated fadeIn"
|
||||
height={480}
|
||||
/>
|
||||
<Skeleton key={i} />
|
||||
))}
|
||||
</Grid>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user