From fc527c33555c60baf778a20efe7a02f26fd69740 Mon Sep 17 00:00:00 2001 From: hasan-deriv Date: Fri, 1 Mar 2024 12:14:38 +0800 Subject: [PATCH] chore: updated 404 page --- themes/gatsby-theme-deriv/src/features/pages/404/index.tsx | 5 +++-- themes/gatsby-theme-deriv/src/pages/404.tsx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/themes/gatsby-theme-deriv/src/features/pages/404/index.tsx b/themes/gatsby-theme-deriv/src/features/pages/404/index.tsx index b0a5113733e..a085c6334f4 100644 --- a/themes/gatsby-theme-deriv/src/features/pages/404/index.tsx +++ b/themes/gatsby-theme-deriv/src/features/pages/404/index.tsx @@ -3,10 +3,11 @@ import Layout from 'features/components/templates/layout' import NotFoundContainer from './content/not-found.container' import MainFooter from 'features/components/templates/footer' import MainRowNavigation from 'features/components/templates/navigation/main-nav' +import { BuildVariantType } from 'features/types' -const PageNotFound = () => { +const PageNotFound = ({region}: BuildVariantType) => { return ( - + diff --git a/themes/gatsby-theme-deriv/src/pages/404.tsx b/themes/gatsby-theme-deriv/src/pages/404.tsx index 5dd27b0f0dc..c1f5d83e67a 100644 --- a/themes/gatsby-theme-deriv/src/pages/404.tsx +++ b/themes/gatsby-theme-deriv/src/pages/404.tsx @@ -6,8 +6,9 @@ import { isBrowser } from 'common/utility' import { SEO } from 'components/containers' import { TGatsbyHead } from 'features/types' -const NotFound = () => { - return isBrowser() && +const NotFound = ({ pageContext }: TGatsbyHead) => { + const { region } = pageContext + return isBrowser() && } export const query = graphql`