Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
chore: updated 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-deriv committed Mar 1, 2024
1 parent c442dd9 commit fc527c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions themes/gatsby-theme-deriv/src/features/pages/404/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Layout>
<Layout region={region}>
<MainRowNavigation />
<NotFoundContainer />
<MainFooter />
Expand Down
5 changes: 3 additions & 2 deletions themes/gatsby-theme-deriv/src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import { isBrowser } from 'common/utility'
import { SEO } from 'components/containers'
import { TGatsbyHead } from 'features/types'

const NotFound = () => {
return isBrowser() && <PageNotFound />
const NotFound = ({ pageContext }: TGatsbyHead) => {
const { region } = pageContext
return isBrowser() && <PageNotFound region={region} />
}

export const query = graphql`
Expand Down

0 comments on commit fc527c3

Please sign in to comment.