refactor: reorganize API imports and simplify parameter handling in various components
This commit is contained in:
@@ -40,7 +40,7 @@ export const Input = <TFormValues extends Record<string, unknown>>(
|
||||
className,
|
||||
containerClassName,
|
||||
labelClassName,
|
||||
...rest
|
||||
...restProperties
|
||||
} = properties
|
||||
const [inputType, setInputType] = useState(type)
|
||||
|
||||
@@ -68,7 +68,7 @@ export const Input = <TFormValues extends Record<string, unknown>>(
|
||||
)}
|
||||
placeholder={inputType === 'password' ? '******' : placeholder}
|
||||
{...register(name, rules)}
|
||||
{...rest}
|
||||
{...restProperties}
|
||||
/>
|
||||
{type === 'password' && (
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user