Skip to content

Commit

Permalink
fixing issues with events schema
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanfroggatt committed Nov 6, 2024
1 parent 4f9a435 commit 980c1f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/newsletters/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const fetchNewsletter = async (slug: string) => {

const serializers = {
types: {
image: ({ value }: { value: unknown }) => (
image: ({ value }: { value: { asset: { url: string }; alt?: string } }) => (
<div className="my-4">
<Image
src={value.asset.url}
Expand All @@ -51,7 +51,7 @@ const serializers = {
),
},
marks: {
link: ({ children, value }: { children: React.ReactNode; value: unknown }) => (
link: ({ children, value }: { children: React.ReactNode; value: { href: string } }) => (
<a href={value.href} target="_blank" rel="noopener noreferrer" className="newsletter-a">
{children}
</a>
Expand Down

0 comments on commit 980c1f5

Please sign in to comment.