diff --git a/src/components/ResourceTable.tsx b/src/components/ResourceTable.tsx index e420cb0..d65f04f 100644 --- a/src/components/ResourceTable.tsx +++ b/src/components/ResourceTable.tsx @@ -1,4 +1,4 @@ -import { type Platform, type PaymentType, type AuditoryResource, type Skill, type SkillLevel } from '@prisma/client'; +import { type PlatformLink, type PaymentType, type AuditoryResource, type Skill, type SkillLevel } from '@prisma/client'; import { CurrencyDollarIcon, ArrowPathRoundedSquareIcon } from '@heroicons/react/24/solid'; import { ClipboardDocumentListIcon } from '@heroicons/react/24/outline'; import Image from 'next/image'; @@ -17,9 +17,9 @@ const ResourceEntry = ({resource}: {resource: AuditoryResource}) => { ) } - const PlatformInfo = ({platforms}: {platforms: Platform[]}) => { - const platformsStr = platforms.map((platform) => { - return translateEnumPlatform(platform); + const PlatformInfo = ({platformLinks}: {platformLinks: PlatformLink[]}) => { + const platformsStr = platformLinks.map((platformLink) => { + return translateEnumPlatform(platformLink.platform); }).join(', '); return ( @@ -32,7 +32,7 @@ const ResourceEntry = ({resource}: {resource: AuditoryResource}) => {