mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
fix: type
This commit is contained in:
@ -6,14 +6,13 @@ import { cn } from '../lib/utils';
|
|||||||
import { Button } from './button';
|
import { Button } from './button';
|
||||||
import { Input, InputProps } from './input';
|
import { Input, InputProps } from './input';
|
||||||
|
|
||||||
const PasswordInput = React.forwardRef<HTMLInputElement, InputProps>(
|
const PasswordInput = React.forwardRef<HTMLInputElement, Omit<InputProps, 'type'>>(
|
||||||
({ className, ...props }, ref) => {
|
({ className, ...props }, ref) => {
|
||||||
const [showPassword, setShowPassword] = React.useState(false);
|
const [showPassword, setShowPassword] = React.useState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<Input
|
<Input
|
||||||
id="password"
|
|
||||||
type={showPassword ? 'text' : 'password'}
|
type={showPassword ? 'text' : 'password'}
|
||||||
className={cn('pr-10', className)}
|
className={cn('pr-10', className)}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
|
|||||||
Reference in New Issue
Block a user