diff --git a/app/aboutus/page.tsx b/app/aboutus/page.tsx index ddd4206..2eb3598 100644 --- a/app/aboutus/page.tsx +++ b/app/aboutus/page.tsx @@ -1,9 +1,7 @@ import React from 'react' import ResponsiveNav from "@/components/Navbar/ResponsiveNav"; import { fetchCourses, fetchSettings, fetchAboutus } from "@/utils"; -import { CoursesProps, AboutusProps } from "@/types"; -import Course from '@/components/Course/Course'; -import dynamic from 'next/dynamic' +import {AboutusProps } from "@/types"; import Home from '@/components/Aboutus/Home'; async function getCourses() { const courses = await fetchCourses(); diff --git a/app/courses/[slug]/page.tsx b/app/courses/[slug]/page.tsx index fb3e824..fd31b04 100644 --- a/app/courses/[slug]/page.tsx +++ b/app/courses/[slug]/page.tsx @@ -1,8 +1,6 @@ import React from 'react' import ResponsiveNav from "@/components/Navbar/ResponsiveNav"; import { fetchCourses, fetchCourse, fetchSettings } from "@/utils"; -import { CoursesProps } from "@/types"; -import Course from '@/components/Course/Course'; import dynamic from 'next/dynamic' const DynamicComponent = dynamic(() => import('@/components/Course/Course'), { ssr: false, diff --git a/app/layout.tsx b/app/layout.tsx index 6d6842a..2e4ab4c 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,9 +1,6 @@ import type { Metadata } from "next"; import localFont from "next/font/local"; import "./globals.css"; -import ResponsiveNav from "../components/Navbar/ResponsiveNav"; -import { fetchCourses } from "@/utils"; -import { TailSpin } from "react-loader-spinner"; import { Toaster } from "react-hot-toast"; const geistSans = localFont({ src: "./fonts/GeistVF.woff", diff --git a/app/page.tsx b/app/page.tsx index d02f73a..92ac095 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,7 +1,5 @@ -import Image from "next/image"; import Home from "../components/Home/Home"; import { fetchCourses, fetchSettings} from "../utils/index"; -import { CoursesProps } from "@/types"; import ResponsiveNav from "../components/Navbar/ResponsiveNav"; type Props = {} @@ -20,7 +18,7 @@ export const metadata = { description: "**", } -export default async function HomePage({ }: Props) { +export default async function HomePage({}: Props) { const courses = await getCourses(); const settings = await getSettings(); return ( diff --git a/components/Aboutus/AboutusContent.tsx b/components/Aboutus/AboutusContent.tsx index 0f04680..a1c54ee 100644 --- a/components/Aboutus/AboutusContent.tsx +++ b/components/Aboutus/AboutusContent.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { CoursesProps, AboutusProps } from '@/types' +import { AboutusProps } from '@/types' const AboutusContent = ({ aboutus }: { aboutus: AboutusProps[] }) => { return (