From 6a5986d6eb8120bc80420dd52fa27f669a99d46d Mon Sep 17 00:00:00 2001 From: AmirReza Jamali Date: Mon, 13 Apr 2026 08:46:33 +0330 Subject: [PATCH] refactor(TenderDetails): improve country flag validation and rendering logic - Enhanced the validation of country codes in the TenderDetails component using a new utility function. - Updated the useGetFlagQuery hook to include an options parameter for conditional fetching based on country code validity. - Refined the rendering logic to ensure country flags are displayed only when valid data is available. --- public/404.svg | 73 +++++++++++++++ public/cable.svg | 91 +++++++++++++++++++ src/app/(not-found)/[...not-found]/layout.tsx | 15 +++ src/app/(not-found)/[...not-found]/page.tsx | 38 ++++++++ 4 files changed, 217 insertions(+) create mode 100644 public/404.svg create mode 100644 public/cable.svg create mode 100644 src/app/(not-found)/[...not-found]/layout.tsx create mode 100644 src/app/(not-found)/[...not-found]/page.tsx diff --git a/public/404.svg b/public/404.svg new file mode 100644 index 0000000..7d3c26e --- /dev/null +++ b/public/404.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/cable.svg b/public/cable.svg new file mode 100644 index 0000000..d74e489 --- /dev/null +++ b/public/cable.svg @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/app/(not-found)/[...not-found]/layout.tsx b/src/app/(not-found)/[...not-found]/layout.tsx new file mode 100644 index 0000000..64bf854 --- /dev/null +++ b/src/app/(not-found)/[...not-found]/layout.tsx @@ -0,0 +1,15 @@ +import type { Metadata } from "next"; +import type { PropsWithChildren } from "react"; + +export const metadata: Metadata = { + title: "Page not found", + robots: { index: false, follow: false }, +}; + +export default function NotFoundRouteLayout({ children }: PropsWithChildren) { + return ( +
+ {children} +
+ ); +} diff --git a/src/app/(not-found)/[...not-found]/page.tsx b/src/app/(not-found)/[...not-found]/page.tsx new file mode 100644 index 0000000..09132f8 --- /dev/null +++ b/src/app/(not-found)/[...not-found]/page.tsx @@ -0,0 +1,38 @@ +import Image from "next/image"; +import Link from "next/link"; + +interface IProps {} + +const NotFoundPage = ({}: IProps) => { + return ( +
+
+ 404 +
+
+
+ not connected cable +
+
+
+

Page not found

+

+ Sorry, the page you're looking for does not exist or has been removed.{" "} +
+ You can navigate to Home using + + This + + link. +

+
+
+ ); +}; + +export default NotFoundPage;