web: fetch less data when just listing events and news articles on home page
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { EventFragment } from "@/gql/graphql";
|
||||
import { EventListItemFragment } from "@/gql/graphql";
|
||||
import { EventItem } from "./EventItem";
|
||||
import styles from "./featuredEvents.module.scss";
|
||||
import { SectionHeader } from "../general/SectionHeader";
|
||||
import { SectionFooter } from "../general/SectionFooter";
|
||||
|
||||
export const FeaturedEvents = ({ events }: { events: EventFragment[] }) => {
|
||||
export const FeaturedEvents = ({ events }: { events: EventListItemFragment[] }) => {
|
||||
return (
|
||||
<section className={styles.featuredEvents}>
|
||||
<SectionHeader heading="Arrangementer" link="/arrangementer" linkText="Se alle arrangementer" />
|
||||
|
||||
Reference in New Issue
Block a user