diff --git a/src/components/SponsorLogos.astro b/src/components/SponsorLogos.astro index 105dbae..8602666 100644 --- a/src/components/SponsorLogos.astro +++ b/src/components/SponsorLogos.astro @@ -2,12 +2,7 @@ import _ from "lodash"; import { Image } from "astro:assets"; -import { sponsorsBySlug } from "~/data/sponsors"; - -const sponsorGroups = _.groupBy( - Object.values(sponsorsBySlug), - (sponsor) => sponsor.placement, -); +import { sponsorsByPlacement } from "~/data/sponsors"; interface Props { light?: boolean; @@ -24,7 +19,7 @@ const { size = "normal", light } = Astro.props; ]} > { - Object.values(sponsorGroups).map((sponsors) => ( + Object.values(sponsorsByPlacement).map((sponsors) => (