From 9e62203da2b143befd5460d2be598b915b3c5148 Mon Sep 17 00:00:00 2001 From: swve Date: Wed, 28 Jun 2023 21:12:44 +0200 Subject: [PATCH] fix: add course thumbnail to trail --- front/components/Pages/Trail/TrailCourseElement.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/components/Pages/Trail/TrailCourseElement.tsx b/front/components/Pages/Trail/TrailCourseElement.tsx index c2d9ec6a..57cef41d 100644 --- a/front/components/Pages/Trail/TrailCourseElement.tsx +++ b/front/components/Pages/Trail/TrailCourseElement.tsx @@ -1,6 +1,7 @@ 'use client'; import { getAPIUrl, getBackendUrl, getUriWithOrg } from '@services/config/config'; import { removeCourse } from '@services/courses/activity'; +import { getCourseThumbnailMediaDirectory } from '@services/media/media'; import { revalidateTags } from '@services/utils/ts/requests'; import Link from 'next/link'; import { mutate } from 'swr'; @@ -28,7 +29,7 @@ function TrailCourseElement(props: TrailCourseElementProps) {
-
+