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
a802fe22
Commit
a802fe22
authored
Dec 16, 2025
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the photo id field by setting it to required
parent
ac2dff15
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
index.tsx
src/components/organism/dialog/index.tsx
+10
-3
index.tsx
src/components/pages/auth/register/index.tsx
+1
-1
No files found.
src/components/organism/dialog/index.tsx
View file @
a802fe22
"use client"
;
import
{
useAppSelector
}
from
"@/hooks/hook"
;
import
{
Box
,
Button
,
Dialog
,
DialogContent
,
Typography
}
from
"@mui/material"
;
import
{
useState
}
from
"react"
;
import
{
use
Effect
,
use
State
}
from
"react"
;
export
default
function
AgeVerificationModal
()
{
const
user
=
useAppSelector
((
state
)
=>
state
.
auth
.
user
);
const
[
open
,
setOpen
]
=
useState
(
true
);
const
handleConfirmAge
=
()
=>
{
...
...
@@ -13,6 +15,11 @@ export default function AgeVerificationModal() {
window
.
location
.
href
=
"about:blank"
;
};
useEffect
(()
=>
{
if
(
user
)
{
setOpen
(
false
);
}
},
[
user
]);
return
(
<
Dialog
open=
{
open
}
...
...
@@ -20,8 +27,8 @@ export default function AgeVerificationModal() {
disableEscapeKeyDown
sx=
{
{
"& .MuiBackdrop-root"
:
{
backdropFilter
:
"blur(8px)"
,
// Blurs the background
backgroundColor
:
"rgba(0, 0, 0, 0.4)"
,
// Semi-transparent dark overlay
backdropFilter
:
"blur(8px)"
,
backgroundColor
:
"rgba(0, 0, 0, 0.4)"
,
},
}
}
>
...
...
src/components/pages/auth/register/index.tsx
View file @
a802fe22
...
...
@@ -92,7 +92,7 @@ const validationSchema = Yup.object().shape({
first_name
:
Yup
.
string
().
required
(
'First name is required'
),
middle_name
:
Yup
.
string
(),
last_name
:
Yup
.
string
().
required
(
'Last name is required'
),
photoid_number
:
Yup
.
string
(),
photoid_number
:
Yup
.
string
()
.
required
(
'Photo ID is required'
)
,
city
:
Yup
.
string
(),
pob
:
Yup
.
string
(),
agree
:
Yup
.
boolean
().
required
().
oneOf
([
true
],
'You must agree to the terms and conditions'
)
...
...
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