From 5875a669a6e6ab36145ff886df73f4a90aeab806 Mon Sep 17 00:00:00 2001 From: aitoAarni Date: Thu, 18 Apr 2024 14:25:43 +0300 Subject: [PATCH] refresh added to courseModal closing --- src/app/[lang]/page.tsx | 15 +-------------- src/components/Buttons/Buttons.tsx | 1 + src/components/CourseModal/index.tsx | 1 + 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/app/[lang]/page.tsx b/src/app/[lang]/page.tsx index 8636a3a3..4407322b 100644 --- a/src/app/[lang]/page.tsx +++ b/src/app/[lang]/page.tsx @@ -76,20 +76,7 @@ export default async function HomePage({ searchParams, params }: Props) { initialTags={tags} lang={params.lang} /> -
-

JSON.stringify(searchParams): {JSON.stringify(searchParams)}

-

courseId: {courseId}

-

openedCourse: {JSON.stringify(openedCourse)}

-

all course Ids: {courses.map((c) => c.id)}

-
+ {isTrainerOrAdmin(session.user) && }