can edit text + fix font weight - remove character space
This commit is contained in:
@@ -78,6 +78,13 @@ const Input: FC<Props> = (props: Props) => {
|
||||
}, [search, props])
|
||||
|
||||
|
||||
const resolvedType =
|
||||
props.type === 'password'
|
||||
? showPassword
|
||||
? 'text'
|
||||
: 'password'
|
||||
: props.type;
|
||||
|
||||
return (
|
||||
<div className='w-full'>
|
||||
<label className='text-sm'>
|
||||
@@ -88,7 +95,7 @@ const Input: FC<Props> = (props: Props) => {
|
||||
<input {...props} onChange={(e) => {
|
||||
setSearch(e.target.value)
|
||||
handleInputChange(e)
|
||||
}} value={props.seprator ? formattedValue : props.value} type={props.type === 'password' && showPassword ? 'text' : props.type === 'password' ? 'password' : undefined} className={inputClass} />
|
||||
}} value={props.seprator ? formattedValue : props.value} type={resolvedType} className={inputClass} />
|
||||
|
||||
{
|
||||
props.type === 'password' &&
|
||||
|
||||
Reference in New Issue
Block a user