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 (
@@ -7,7 +7,7 @@ const AboutusContent = ({ aboutus }: { aboutus: AboutusProps[] }) => { aboutus.map((item, index) => { const isEven = index % 2 === 0; return ( -
+
{isEven ? (
diff --git a/components/Aboutus/Banner.tsx b/components/Aboutus/Banner.tsx index 90ebc27..c85f6e1 100644 --- a/components/Aboutus/Banner.tsx +++ b/components/Aboutus/Banner.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { CoursesProps } from '@/types' + const Banner = () => { return ( diff --git a/components/Aboutus/Home.tsx b/components/Aboutus/Home.tsx index 67ac8f2..fe03ce8 100644 --- a/components/Aboutus/Home.tsx +++ b/components/Aboutus/Home.tsx @@ -1,14 +1,14 @@ "use client"; -import { useState, useEffect, lazy, Suspense } from "react"; +import { useState, useEffect, Suspense } from "react"; import Loading from '../Loading' import Footer from '../Footer' import ContactForm from "../ContactForm"; import AboutusContent from "./AboutusContent"; import Banner from "./Banner"; import Map from "./Map"; -import { CoursesArrayProps, CoursesProps, SettingsProps, AboutusProps } from "@/types"; -import Whatsapp from "../Whatsapp"; +import { CoursesProps, SettingsProps, AboutusProps } from "@/types"; + const Home = ({ courses, settings, aboutus }: { courses: CoursesProps[], settings: SettingsProps, aboutus: AboutusProps[] }) => { const [loading, setLoading] = useState(true); // const [courses, setCourses] = useState([]); diff --git a/components/ContactForm.tsx b/components/ContactForm.tsx index aefd944..0dec885 100644 --- a/components/ContactForm.tsx +++ b/components/ContactForm.tsx @@ -1,6 +1,5 @@ "use client" import React from 'react' -import CustomButton from './CustomButton' import { useForm, SubmitHandler } from "react-hook-form" import { postMessage } from '@/utils' import { MessageProps } from '@/types' @@ -17,9 +16,8 @@ const ContactForm = ({ startLoading, stopLoading }: Props) => { const { register, handleSubmit, - watch, reset, - formState: { errors }, + formState: {}, } = useForm() const onSubmit: SubmitHandler = async (data) => { try { diff --git a/components/Course/Accordion.tsx b/components/Course/Accordion.tsx index bd2d638..1dcd540 100644 --- a/components/Course/Accordion.tsx +++ b/components/Course/Accordion.tsx @@ -2,7 +2,7 @@ import React from 'react' import Collapse from './Collapse' import ScheduleCollapse from './ScheduleCollapse' -import { CoursesProps, ScheduleProps, RerganizedScheduleProps } from '@/types' +import { CoursesProps, ScheduleProps } from '@/types' async function reorganizedSchedule(schedule: ScheduleProps[]) { diff --git a/next.config.mjs b/next.config.mjs index 4678774..a41c0f8 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,6 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + ignoreBuildErrors: true, +}; export default nextConfig;