Skip to content

Commit a649b0a

Browse files
committed
[#43] ♻️ Extend TextInputProps to accept additional props
1 parent 45836b1 commit a649b0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/common/input/PasswordInput.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import { FieldValues, UseFormRegister } from 'react-hook-form'
33

44
import { useToggle } from '@/hooks/useToggle'
55

6-
import { TextInput } from './TextInput'
6+
import { TextInput, TextInputProps } from './TextInput'
77

8-
interface PasswordInputProps {
8+
interface PasswordInputProps
9+
extends Omit<TextInputProps, 'startAdornment' | 'endAdornment' | 'type'> {
910
error?: boolean
1011
register?: ReturnType<UseFormRegister<FieldValues>>
1112
className?: string

0 commit comments

Comments
 (0)