feat(SW-360): Refactored NewPassword input

This commit is contained in:
Tobias Johansson
2024-09-10 10:33:34 +02:00
committed by Pontus Dreij
parent a4483b7d71
commit c5c4f8e7e7
13 changed files with 222 additions and 83 deletions

View File

@@ -1,12 +1,5 @@
import type { RegisterOptions } from "react-hook-form"
export enum Key {
CHAR_LENGTH = "CHAR_LENGTH",
NUM = "NUM",
SPECIAL_CHAR = "SPECIAL_CHAR",
UPPERCASE = "UPPERCASE",
}
export interface NewPasswordProps
extends React.InputHTMLAttributes<HTMLInputElement> {
label?: string
@@ -14,6 +7,6 @@ export interface NewPasswordProps
}
export interface IconProps {
matcher: Key
messages: Key[]
errorMessage: string
errors: string[]
}