add attribution to event featured images
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
import { EventFragment } from "@/lib/event";
|
import { EventFragment } from "@/lib/event";
|
||||||
import styles from "./eventHeader.module.scss";
|
import styles from "./eventHeader.module.scss";
|
||||||
import { Image } from "@/components/general/Image";
|
import { ImageFigure } from "@/components/general/Image";
|
||||||
import { Breadcrumb } from "../general/Breadcrumb";
|
import { Breadcrumb } from "../general/Breadcrumb";
|
||||||
import Icon from "../general/Icon";
|
import Icon from "../general/Icon";
|
||||||
|
|
||||||
@ -31,11 +31,12 @@ export const EventHeader = ({ event }: { event: EventFragment }) => {
|
|||||||
</div>
|
</div>
|
||||||
<div className={styles.image}>
|
<div className={styles.image}>
|
||||||
{featuredImage && (
|
{featuredImage && (
|
||||||
<Image
|
<ImageFigure
|
||||||
src={featuredImage.url}
|
src={featuredImage.url}
|
||||||
alt={featuredImage.alt}
|
alt={featuredImage.alt}
|
||||||
width={featuredImage.width}
|
width={featuredImage.width}
|
||||||
height={featuredImage.height}
|
height={featuredImage.height}
|
||||||
|
attribution={featuredImage.attribution}
|
||||||
sizes="100vw"
|
sizes="100vw"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user