@@ -72,9 +72,24 @@ const Registration: NextPage<Props> = ({}) => {
72
72
const handleClose = ( ) => {
73
73
setOpen ( false )
74
74
}
75
- const handleResendOTP = ( ) => {
76
- // Handle OTP resend logic here
77
- }
75
+ // const handleResendOTP = () => {
76
+ // const data = {
77
+ // name: formdata.fullName,
78
+ // email: `${formdata.rollNumber}@iitdh .ac.in`,
79
+ // userHandle: formdata.userHandle,
80
+ // }
81
+
82
+ // axios
83
+ // .post('/api/email/sendEmail', data)
84
+ // .then(response => {
85
+ // // Handle the successful response from the server
86
+ // console.log('Server Response:', response.data)
87
+ // })
88
+ // .catch(error => {
89
+ // // Handle any errors that occurred during the request
90
+ // console.error('Error:', error)
91
+ // })
92
+ // }
78
93
79
94
const handleSubmitOTP = ( ) => {
80
95
axios
@@ -139,7 +154,7 @@ const Registration: NextPage<Props> = ({}) => {
139
154
maxLength = { 4 }
140
155
/>
141
156
< button onClick = { handleSubmitOTP } > Submit</ button >
142
- < button onClick = { handleResendOTP } > Resend OTP</ button >
157
+ { /* <button onClick={handleResendOTP}>Resend OTP</button> */ }
143
158
</ div >
144
159
</ Modal >
145
160
@@ -160,6 +175,7 @@ const Registration: NextPage<Props> = ({}) => {
160
175
title = 'Codeforces'
161
176
inputs = { inputs_cf }
162
177
handleChangeInput = { handleChangeInput_cf }
178
+ handleOpen = { handleOpen }
163
179
type = { 0 }
164
180
/>
165
181
</ div >
@@ -170,6 +186,7 @@ const Registration: NextPage<Props> = ({}) => {
170
186
title = 'LeetCode'
171
187
inputs = { inputs_lt }
172
188
handleChangeInput = { handleChangeInput_lt }
189
+ handleOpen = { handleOpen }
173
190
type = { 1 }
174
191
/>
175
192
</ div >
0 commit comments