can edit text + fix font weight - remove character space

This commit is contained in:
hamid zarghami
2025-11-26 15:45:00 +03:30
parent aacf209894
commit 735355822a
19 changed files with 342 additions and 160 deletions
+8 -1
View File
@@ -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' &&