diff --git a/.eslintrc.json b/.eslintrc.json index e976031..ba8d2cf 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,4 @@ { - // "extends": ["next/core-web-vitals", "next/typescript"], - "extends": "next/core-web-vitals", + "extends": ["next/core-web-vitals", "next/typescript"], "rules": { "react/no-unescaped-entities": 0 } } diff --git a/app/payment/_component/footer_payment.tsx b/app/payment/_component/footer_payment.tsx index fa8ad9c..e445783 100644 --- a/app/payment/_component/footer_payment.tsx +++ b/app/payment/_component/footer_payment.tsx @@ -2,10 +2,10 @@ import React from "react"; import Image from "next/image"; // Define the type for social media links -interface SocialMediaLink { - name: string; - url: string; - icon: string; +interface socialMediaLinks { +name: string; +url: string; +icon: string; } // You would typically define this array in a separate file or fetch it from an API diff --git a/app/payment/_component/payment-type-layout.tsx b/app/payment/_component/payment-type-layout.tsx index b85948b..95fd922 100644 --- a/app/payment/_component/payment-type-layout.tsx +++ b/app/payment/_component/payment-type-layout.tsx @@ -1,8 +1,3 @@ -// components/err-type-layout - -import Link from "next/link"; -import { Button } from "@/components/ui/button"; -import Image from "next/image"; import { ReactNode } from "react"; import Header from "../_component/header_payment"; import Footer from "../_component/footer_payment"; diff --git a/app/payment/errorpage/_components/err-type-layout.tsx b/app/payment/errorpage/_components/err-type-layout.tsx index f869dac..e7cd9ee 100644 --- a/app/payment/errorpage/_components/err-type-layout.tsx +++ b/app/payment/errorpage/_components/err-type-layout.tsx @@ -1,8 +1,3 @@ -// components/err-type-layout - -import Link from "next/link"; -import { Button } from "@/components/ui/button"; -import Image from "next/image"; import { ReactNode } from "react"; import WidthLayout from "@/components/commons/width-layout"; import InterfaceLayout from "@/app/(landing)/_components/err-Interface-layout"; diff --git a/app/payment/page.tsx b/app/payment/page.tsx index a9a27ce..3d66244 100644 --- a/app/payment/page.tsx +++ b/app/payment/page.tsx @@ -1,7 +1,7 @@ "use client"; import { Suspense, useEffect, useState } from "react"; -import { useRouter, useSearchParams } from "next/navigation"; +import { useSearchParams } from "next/navigation"; import { Button } from "@/components/ui/button"; import Image from "next/image"; import Link from "next/link"; @@ -22,11 +22,6 @@ const StatusMessage: React.FC = ({ firstName, lastName, }) => { - const handleClose = () => { - if (window.parent) { - window.parent.postMessage("closeIframe", "*"); - } - }; if (isAlreadyVerified) { return ( diff --git a/components/commons/floating-navbar.tsx b/components/commons/floating-navbar.tsx index 449ef88..d664b4e 100644 --- a/components/commons/floating-navbar.tsx +++ b/components/commons/floating-navbar.tsx @@ -9,7 +9,6 @@ import { } from "framer-motion"; import { cn } from "@/lib/utils"; import Link from "next/link"; -import Image from "next/image"; import { usePathname, useRouter } from "next/navigation"; import { HoverCard, @@ -59,7 +58,6 @@ export const FloatingNav = ({ useMotionValueEvent(scrollYProgress, "change", (current) => { if (typeof current === "number" && isScrollable) { - let direction = current - scrollYProgress.getPrevious()!; setVisible(true); } diff --git a/components/commons/footer-primary.tsx b/components/commons/footer-primary.tsx index 7690176..2f15d42 100644 --- a/components/commons/footer-primary.tsx +++ b/components/commons/footer-primary.tsx @@ -37,8 +37,6 @@ const socialMediaLinks: SocialMediaLink[] = [ ]; const Footer: React.FC = () => { - const currentYear = new Date().getFullYear(); - return (