Skip to content

Commit

Permalink
sync with build repo
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkevingreen committed Sep 18, 2023
1 parent b06b87f commit eb5e698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
6 changes: 3 additions & 3 deletions app/components/sharable/productGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ const ProductCard = ({
sanity: product.store.variants[0],
...shopify?.variants?.nodes[0]
})
console.log('active variant', activeVariant)

return (
<div className='col-span-1'>
<div className='aspect-square bg-primary-green/60'>
<div className='aspect-square'>
{activeVariant?.sanity?.mainImage?.asset?.url && (
<img src={activeVariant?.sanity?.mainImage?.asset?.url} alt={activeVariant.sanity.title} />
<img className='w-full object-cover' src={activeVariant?.sanity?.mainImage?.asset?.url} alt={activeVariant.sanity.title} />
)}
</div>
<h3 className='text-mono-48 my-2'>{product?.store.title} ${activeVariant.sanity.store.price}</h3>
Expand Down
22 changes: 3 additions & 19 deletions cms/schemas/documents/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,40 +28,24 @@ export default {
description: 'Build complex menus from the menu area, assign them here to update the menu everywhere',
type: 'reference',
to: { type: 'header' },
validation: Rule => Rule.required()
// validation: Rule => Rule.required()
},
{
name: 'footerMenu',
title: 'Footer Menu',
description: 'Build complex menus from the module area, assign them here to update the menu everywhere',
type: 'reference',
to: { type: 'footer' },
validation: Rule => Rule.required()
// validation: Rule => Rule.required()
},
{
name: 'cart',
title: 'Cart',
description: 'Create custom carts in preparation for high volume experiences, or merchandise difference products across storefronts.',
type: 'reference',
to: { type: 'cart' },
validation: Rule => Rule.required()
// validation: Rule => Rule.required()
},
// {
// name: 'filters',
// title: 'Global Filters',
// description: 'Filters inform the CLP experience, various automation happens depending on what level of collection you are on.',
// type: 'reference',
// to: { type: 'filter' },
// validation: Rule => Rule.required()
// },
// {
// name: 'globalCollectionHeaders',
// title: 'Global Collection Header',
// description: 'Enables a global header on all collection pages.',
// type: 'reference',
// to: { type: 'globalCollectionHeader' },
// validation: Rule => Rule.required()
// }
],
preview: {
select: {
Expand Down

0 comments on commit eb5e698

Please sign in to comment.