Skip to content

Commit

Permalink
GH requested Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Darguima committed Nov 19, 2023
1 parent 2082d9b commit df48f5c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
9 changes: 2 additions & 7 deletions components/PasswordInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { faEye, faEyeSlash } from "@fortawesome/free-solid-svg-icons";

interface Props extends InputHTMLAttributes<HTMLInputElement> {
text?: string;
autocomplete?: string;
fgColor: string;
bgColor: string;
enabled?: boolean;
Expand All @@ -16,10 +15,8 @@ interface Props extends InputHTMLAttributes<HTMLInputElement> {
export default forwardRef<HTMLInputElement, Props>(function PasswordInput(
{
text = "PASSWORD",
id = "password",
name = "password",
type = "password",
autocomplete = "current-password",
autoComplete = "current-password",
fgColor,
bgColor,
...rest
Expand All @@ -36,12 +33,10 @@ export default forwardRef<HTMLInputElement, Props>(function PasswordInput(
<Input
{...rest}
text={text}
id={id}
name={name}
type={isPasswordVisible ? "text" : "password"}
fgColor="white"
bgColor="primary"
autoComplete="current-password"
autoComplete={autoComplete}
right={
<FontAwesomeIcon
className="mx-2 cursor-pointer"
Expand Down
7 changes: 6 additions & 1 deletion layout/SignUp/components/SignUpForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ export default function SignUpForm() {
bgColor="primary"
onChange={(e) => updateNickname(e.currentTarget.value)}
/>
<PasswordInput text="PASSWORD" fgColor="white" bgColor="primary" />
<PasswordInput
text="PASSWORD"
fgColor="white"
bgColor="primary"
onChange={(e) => updatePassword(e.currentTarget.value)}
/>
<PasswordInput
text="CONFIRM PASSWORD"
fgColor="white"
Expand Down
8 changes: 7 additions & 1 deletion pages/register/[uuid].js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,17 @@ function Register() {
bgColor="primary"
onChange={(e) => updateNickname(e.currentTarget.value)}
/>
<PasswordInput text="PASSWORD" fgColor="white" bgColor="primary" />
<PasswordInput
text="PASSWORD"
fgColor="white"
bgColor="primary"
onChange={(e) => updatePassword(e.currentTarget.value)}
/>
<PasswordInput
text="CONFIRM PASSWORD"
fgColor="white"
bgColor="primary"
onChange={(e) => updatePasswordConfirmation(e.currentTarget.value)}
/>
<Button
type="submit"
Expand Down

0 comments on commit df48f5c

Please sign in to comment.