Skip to content

Commit

Permalink
Fix page.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Oct 7, 2024
1 parent cba4589 commit 69c7c17
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions backend/src/app/(pages)/(login)/sign-up/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client'

import React, { useState, useEffect } from 'react'
import { notFound } from 'next/navigation'
import { strings as commonStrings } from '@/lang/common'
import { strings } from '@/lang/sign-up'
import * as wexcommerceTypes from ':wexcommerce-types'
Expand Down Expand Up @@ -54,9 +55,9 @@ const SignUp: React.FC = () => {
}
}, [language, router])

useEffect(() => {

}, [router])
if (process.env.NODE_ENV === 'production') {
return notFound()
}

const handleOnChangeFullName = (e: React.ChangeEvent<HTMLInputElement>) => {
setFullName(e.target.value)
Expand Down Expand Up @@ -271,11 +272,4 @@ const SignUp: React.FC = () => {
)
}

export function getStaticProps() {
return {
// returns the default 404 page with a status code of 404 in production
notFound: process.env.NODE_ENV === 'production'
}
}

export default SignUp

0 comments on commit 69c7c17

Please sign in to comment.