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
aeeea9c5
Commit
aeeea9c5
authored
Mar 06, 2026
by
Arjun Jhukal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
0a2e890b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
PasswordField.tsx
src/components/molecules/PasswordField.tsx
+3
-1
index.tsx
src/components/pages/auth/register/index.tsx
+1
-1
AddPlayerForm.tsx
...rd/adminDashboard/players/addPlayerForm/AddPlayerForm.tsx
+4
-1
No files found.
src/components/molecules/PasswordField.tsx
View file @
aeeea9c5
...
...
@@ -12,6 +12,7 @@ interface PasswordFieldProps {
onChange
:
React
.
ChangeEventHandler
<
HTMLInputElement
>
;
onBlur
:
React
.
FocusEventHandler
<
HTMLInputElement
>
;
error
?:
string
;
required
?:
boolean
;
}
export
default
function
PasswordField
({
...
...
@@ -22,6 +23,7 @@ export default function PasswordField({
onChange
,
onBlur
,
error
,
required
=
false
}:
PasswordFieldProps
)
{
const
[
showPassword
,
setShowPassword
]
=
useState
(
false
);
...
...
@@ -29,7 +31,7 @@ export default function PasswordField({
const
handleMouseDownPassword
=
(
event
:
React
.
MouseEvent
<
HTMLButtonElement
>
)
=>
event
.
preventDefault
();
return
(
<
div
className=
"input_field"
>
<
InputLabel
htmlFor=
{
name
}
>
{
label
}
<
span
className=
"text-red-500"
>
*
</
span
>
</
InputLabel
>
<
InputLabel
htmlFor=
{
name
}
>
{
label
}
{
required
&&
<
span
className=
"text-red-500"
>
*
</
span
>
}
</
InputLabel
>
<
OutlinedInput
id=
{
name
}
name=
{
name
}
...
...
src/components/pages/auth/register/index.tsx
View file @
aeeea9c5
...
...
@@ -74,7 +74,7 @@ const validationSchema = Yup.object().shape({
'Password cannot start or end with spaces'
,
(
value
)
=>
value
===
value
?.
trim
()
)
.
m
ax
(
16
,
'Password must be less than 10
characters'
),
.
m
in
(
9
,
'Password must be at least 9
characters'
),
confirmPassword
:
Yup
.
string
()
.
oneOf
([
Yup
.
ref
(
'password'
)],
'Passwords must match'
)
.
required
(
'Confirm Password is required'
),
...
...
src/components/pages/dashboard/adminDashboard/players/addPlayerForm/AddPlayerForm.tsx
View file @
aeeea9c5
...
...
@@ -184,7 +184,7 @@ export default function AddPlayerForm({ formik, id, data, loading, buttonLabel }
</
div
>
<
div
className=
"input__field"
>
<
InputLabel
htmlFor=
"pob"
>
State
</
InputLabel
>
<
InputLabel
htmlFor=
"pob"
>
State
<
span
className=
"text-red-500"
>
*
</
span
>
</
InputLabel
>
<
Select
fullWidth
...
...
@@ -291,6 +291,7 @@ export default function AddPlayerForm({ formik, id, data, loading, buttonLabel }
<
div
className=
"input__field"
>
<
PasswordField
required=
{
id
?
false
:
true
}
name=
"password"
label=
"Password*"
placeholder=
"Enter password"
...
...
@@ -303,6 +304,8 @@ export default function AddPlayerForm({ formik, id, data, loading, buttonLabel }
<
div
className=
"input__field"
>
<
PasswordField
required=
{
id
?
false
:
true
}
name=
"password_confirmation"
label=
"Confirm Password*"
placeholder=
"Confirm password"
...
...
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