feat(SW-360): Refactored NewPassword input
This commit is contained in:
committed by
Pontus Dreij
parent
a4483b7d71
commit
c5c4f8e7e7
@@ -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[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user