mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: Authors showing on the course page
This commit is contained in:
parent
4e7a06b74e
commit
5a80dd17f1
5 changed files with 353 additions and 128 deletions
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue