add reusable ImageFigure component

This commit is contained in:
2024-07-07 17:43:19 +02:00
parent e03e2624db
commit ada7d25083
15 changed files with 70 additions and 58 deletions

View File

@ -1,6 +1,6 @@
import { EventFragment } from "@/lib/event";
import styles from "./eventHeader.module.scss";
import Image from "@/components/general/Image";
import { Image } from "@/components/general/Image";
import Link from "next/link";
import { OrganizerList } from "./OrganizerList";
import Icon from "../general/Icon";
@ -17,6 +17,8 @@ function formatPrice(price: number): string {
}
export const EventHeader = ({ event }: { event: EventFragment }) => {
// TODO: where should we show image attribution for the featured image?
const featuredImage: any = event.featuredImage;
return (

View File

@ -2,7 +2,7 @@
import styles from "./eventItem.module.scss";
import Link from "next/link";
import Image from "../general/Image";
import { Image } from "@/components/general/Image";
import {
SingularEvent,
EventFragment,