fix: Authors showing on the course page

This commit is contained in:
swve 2025-03-22 13:49:07 +01:00
parent 4e7a06b74e
commit 5a80dd17f1
5 changed files with 353 additions and 128 deletions

View file

@ -29,6 +29,8 @@ const CourseClient = (props: any) => {
const router = useRouter()
const isMobile = useMediaQuery('(max-width: 768px)')
console.log(course)
function getLearningTags() {
if (!course?.learnings) {
setLearnings([])
@ -333,7 +335,7 @@ const CourseClient = (props: any) => {
</GeneralWrapperStyled>
{isMobile && (
<div className="fixed bottom-0 left-0 right-0 bg-white shadow-md shadow-gray-300/25 outline outline-1 outline-neutral-200/40 p-4 z-50">
<div className="fixed bottom-0 left-0 right-0 p-4 z-50">
<CourseActionsMobile courseuuid={courseuuid} orgslug={orgslug} course={course} />
</div>
)}

View file

@ -72,7 +72,7 @@ const CoursePage = async (params: any) => {
// Fetch course metadata once
const course_meta = await getCourseMetadata(
params.params.courseuuid,
{ revalidate: 1800, tags: ['courses'] },
{ revalidate: 0, tags: ['courses'] },
access_token ? access_token : null
)