Search issue ui

This commit is contained in:
Bel Curcio 2021-06-08 12:58:13 -03:00
parent f2c4ff32b5
commit e46036a3e6

View File

@ -336,7 +336,7 @@ export default function Search({
)} )}
{data ? ( {data ? (
<Grid layout="normal"> <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
{data.products.map((product: Product) => ( {data.products.map((product: Product) => (
<ProductCard <ProductCard
variant="simple" variant="simple"
@ -349,13 +349,13 @@ export default function Search({
}} }}
/> />
))} ))}
</Grid> </div>
) : ( ) : (
<Grid layout="normal"> <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
{rangeMap(12, (i) => ( {rangeMap(12, (i) => (
<Skeleton key={i} /> <Skeleton key={i} />
))} ))}
</Grid> </div>
)} )}
</div> </div>