Skip to content

Commit

Permalink
Merge pull request #2 from demo-repositories/revert
Browse files Browse the repository at this point in the history
Reverts to nov config
  • Loading branch information
ChrisLaRocque authored Feb 14, 2024
2 parents de76512 + c6a41e5 commit 407b5ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions next/components/bynder-block/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@ export default function RenderBynderBlock({
caption,
bynderAsset,
}: ISanityBynderBlockDocument) {
const { previewImg, aspectRatio } = bynderAsset;
const imgWidth = 400;
const fileURL = "/"; // this doesn't come back from Sanity's test space
return (
<section className="mx-auto my-7 flex max-w-7xl justify-center">
<div className="block-wrapper items-center justify-between gap-9 bg-accent p-7 md:flex">
<Image
src={previewImg}
layout="constrained"
width={imgWidth}
height={imgWidth * aspectRatio}
alt={"Image of file available for download"}
/>
{bynderAsset && bynderAsset.previewImg && (
<Image
src={bynderAsset.previewImg}
layout="constrained"
width={imgWidth}
height={imgWidth * bynderAsset.aspectRatio}
alt={"Image of file available for download"}
/>
)}
<div>
<h3 className="mb-3 mt-5 text-2xl font-bold tracking-tight lg:mt-0">
{title}
Expand Down
2 changes: 1 addition & 1 deletion sanity/schemas/documents/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
options: {
source: 'title',
},
validation: (rule: Rule) => rule.required(),
// validation: (rule: Rule) => rule.required(),
group: 'content',
},
{
Expand Down
2 changes: 1 addition & 1 deletion sanity/schemas/documents/taxonomy-term.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
type: 'slug',
options: {
source: 'name',
isUnique: isUniqueAcrossAllDocuments,
// isUnique: isUniqueAcrossAllDocuments,
},
},
],
Expand Down

0 comments on commit 407b5ec

Please sign in to comment.