add custom image model, fetch alt text
This commit is contained in:
11
web/src/lib/common.ts
Normal file
11
web/src/lib/common.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { graphql } from "@/gql";
|
||||
|
||||
const ImageFragmentDefinition = graphql(`
|
||||
fragment Image on CustomImage {
|
||||
url
|
||||
width
|
||||
height
|
||||
alt
|
||||
attribution
|
||||
}
|
||||
`);
|
@ -38,9 +38,7 @@ const EventFragmentDefinition = graphql(`
|
||||
}
|
||||
}
|
||||
featuredImage {
|
||||
url
|
||||
width
|
||||
height
|
||||
...Image
|
||||
}
|
||||
facebookUrl
|
||||
ticketUrl
|
||||
|
Reference in New Issue
Block a user