@@ -17,14 +17,12 @@ import { cx } from 'class-variance-authority'
1717import { signUpSchema } from '@wallet/shared'
1818import { FEATURES_ENABLED , THEME } from '@/utils/constants'
1919import { Checkbox } from '@/ui/forms/Checkbox'
20- import { useRouter } from 'next/router'
2120
2221const SignUpPage : NextPageWithLayout = ( ) => {
2322 const [ openDialog , closeDialog ] = useDialog ( )
2423 const [ isPasswordVisible , setPasswordVisible ] = useState < boolean > ( false )
2524 const [ isRepeatPasswordVisible , setRepeatPasswordVisible ] =
2625 useState < boolean > ( false )
27- const router = useRouter ( )
2826
2927 const signUpForm = useZodForm ( {
3028 schema : signUpSchema
@@ -36,9 +34,7 @@ const SignUpPage: NextPageWithLayout = () => {
3634 setRepeatPasswordVisible ( ! isRepeatPasswordVisible )
3735 }
3836 useEffect ( ( ) => {
39- FEATURES_ENABLED ? router . push ( '/auth/login' ) : null
4037 signUpForm . setFocus ( 'email' )
41- // eslint-disable-next-line react-hooks/exhaustive-deps
4238 } , [ signUpForm ] )
4339
4440 return (
@@ -136,28 +132,11 @@ const SignUpPage: NextPageWithLayout = () => {
136132 { FEATURES_ENABLED ? (
137133 < div className = "relative cursor-pointer" >
138134 < Checkbox
135+ hidden
136+ checked
139137 { ...signUpForm . register ( 'acceptedCardTerms' ) }
140138 error = { signUpForm . formState . errors . acceptedCardTerms ?. message }
141- label = {
142- < div >
143- By clicking here, I confirm that I have read, understood,
144- and agree with the
145- < a
146- className = "underline"
147- target = "_blank"
148- href = "https://cdn.gatehub.net/docs/General_terms_for_Paywiser_x_GateHub-Mastercard_card_V1.pdf"
149- rel = "noreferrer"
150- >
151- Paywiser Terms and Conditions
152- </ a >
153- for the use of the Paywiser MasterCard payment card,
154- including the additional terms for card testing and
155- limitations set out therein. I agree to not promote,
156- advertise or post on any social media the Paywiser x GateHub
157- MasterCard payment card without the prior written consent of
158- the card issuer (Paywiser).
159- </ div >
160- }
139+ label = ""
161140 />
162141 </ div >
163142 ) : null }
0 commit comments