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