updated
This commit is contained in:
parent
cced5996a4
commit
34af5e3373
|
@ -2,10 +2,10 @@ import React from 'react'
|
||||||
import ResponsiveNav from "@/components/Navbar/ResponsiveNav";
|
import ResponsiveNav from "@/components/Navbar/ResponsiveNav";
|
||||||
import { fetchCourses, fetchSettings } from "@/utils";
|
import { fetchCourses, fetchSettings } from "@/utils";
|
||||||
import dynamic from 'next/dynamic'
|
import dynamic from 'next/dynamic'
|
||||||
//import Course from '@/components/Course/Course';
|
import Course from '@/components/Course/Course';
|
||||||
const DynamicComponent = dynamic(() => import('@/components/Course/Course'), {
|
// const DynamicComponent = dynamic(() => import('@/components/Course/Course'), {
|
||||||
ssr: true,
|
// ssr: true,
|
||||||
})
|
// })
|
||||||
async function getCourses() {
|
async function getCourses() {
|
||||||
const courses = await fetchCourses();
|
const courses = await fetchCourses();
|
||||||
return courses;
|
return courses;
|
||||||
|
@ -33,7 +33,7 @@ export default async function Page({ params }: { params: { slug: string } }) {
|
||||||
<div className='bg-[#F6E8E8]'>
|
<div className='bg-[#F6E8E8]'>
|
||||||
|
|
||||||
<ResponsiveNav courses={courses} settings={settings} />
|
<ResponsiveNav courses={courses} settings={settings} />
|
||||||
<DynamicComponent course={course} settings={settings} />
|
<Course course={course} settings={settings} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
Loading…
Reference in New Issue