Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sweepstake
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arjun Jhukal
sweepstake
Commits
39855230
Commit
39855230
authored
Nov 01, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the new fixes
parent
92ba34b9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
28 deletions
+43
-28
globals.css
src/app/globals.css
+5
-0
index.tsx
src/components/pages/auth/register/index.tsx
+0
-0
index.tsx
...ponents/pages/dashboard/userDashboard/verifyKyc/index.tsx
+16
-16
authApi.ts
src/services/authApi.ts
+4
-3
auth.ts
src/types/auth.ts
+18
-9
No files found.
src/app/globals.css
View file @
39855230
...
...
@@ -458,4 +458,8 @@ input[type=number]::-webkit-outer-spin-button {
input
[
type
=
number
]
{
-moz-appearance
:
textfield
;
}
.MuiPickersSectionList-root
{
padding
:
12px
16px
!important
;
}
\ No newline at end of file
src/components/pages/auth/register/index.tsx
View file @
39855230
This diff is collapsed.
Click to expand it.
src/components/pages/dashboard/userDashboard/verifyKyc/index.tsx
View file @
39855230
...
...
@@ -170,22 +170,6 @@ export default function VerifyKYCPage() {
<
span
className=
"error"
>
{
formik
.
touched
.
last_name
&&
formik
.
errors
.
last_name
}
</
span
>
</
div
>
{
/* Address */
}
<
div
className=
"input__field"
>
<
InputLabel
htmlFor=
"address"
>
Address
</
InputLabel
>
<
OutlinedInput
fullWidth
id=
"address"
name=
"address"
placeholder=
"Enter address"
value=
{
formik
.
values
.
address
}
onChange=
{
formik
.
handleChange
}
onBlur=
{
formik
.
handleBlur
}
sx=
{
formFieldSx
}
/>
<
span
className=
"error"
>
{
formik
.
touched
.
address
&&
formik
.
errors
.
address
}
</
span
>
</
div
>
{
/* User ID */
}
<
div
className=
"input__field"
>
<
InputLabel
htmlFor=
"user_id"
>
User ID
<
span
className=
"text-red-500"
>
*
</
span
></
InputLabel
>
...
...
@@ -217,6 +201,22 @@ export default function VerifyKYCPage() {
/>
<
span
className=
"error"
>
{
formik
.
touched
.
photo_id
&&
formik
.
errors
.
photo_id
}
</
span
>
</
div
>
{
/* Address */
}
<
div
className=
"input__field"
>
<
InputLabel
htmlFor=
"address"
>
Address
</
InputLabel
>
<
OutlinedInput
fullWidth
id=
"address"
name=
"address"
placeholder=
"Enter address"
value=
{
formik
.
values
.
address
}
onChange=
{
formik
.
handleChange
}
onBlur=
{
formik
.
handleBlur
}
sx=
{
formFieldSx
}
/>
<
span
className=
"error"
>
{
formik
.
touched
.
address
&&
formik
.
errors
.
address
}
</
span
>
</
div
>
</
div
>
<
Stack
mt=
{
4
}
direction=
"row"
justifyContent=
"flex-end"
>
...
...
src/services/authApi.ts
View file @
39855230
...
...
@@ -11,16 +11,17 @@ export const authApi = createApi({
query
:
({
email
,
username
,
password
,
password_confirmation
})
=>
({
password_confirmation
,
first_name
,
middle_name
,
last_name
,
phone
,
photoid_number
,
dob
,
city
,
pob
})
=>
({
url
:
`/api/auth/register`
,
method
:
"POST"
,
body
:
{
email
,
username
,
password
,
password_confirmation
password_confirmation
,
first_name
,
middle_name
,
last_name
,
phone
,
photoid_number
,
dob
,
city
,
pob
},
})
}),
}),
login
:
builder
.
mutation
<
LoginResponse
,
LoginProps
>
({
query
:
({
email
,
password
})
=>
({
...
...
src/types/auth.ts
View file @
39855230
...
...
@@ -6,16 +6,16 @@ export type LoginProps = {
}
export
interface
User
{
id
:
string
,
name
:
string
,
email
:
string
,
first_name
:
string
,
last_name
:
string
,
profile_image
:
string
,
wallet_address
:
string
,
address
:
string
,
id
:
string
;
name
:
string
;
email
:
string
;
first_name
:
string
;
last_name
:
string
;
profile_image
:
string
;
wallet_address
:
string
;
address
:
string
;
city
:
string
role
:
RoleProps
,
role
:
RoleProps
;
}
export
interface
LoginResponse
{
...
...
@@ -30,4 +30,12 @@ export interface LoginResponse {
export
interface
RegisterProps
extends
LoginProps
{
username
:
string
;
password_confirmation
:
string
;
first_name
:
string
;
middle_name
:
string
;
last_name
:
string
;
phone
:
string
;
photoid_number
:
string
;
dob
:
string
;
city
:
string
;
pob
:
string
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment