remove unneccessary buttons

This commit is contained in:
andrzej 2024-06-30 17:42:33 +02:00
parent a2682f4f05
commit e272894918
2 changed files with 8 additions and 12 deletions

Binary file not shown.

View File

@ -42,18 +42,14 @@ export const TextInputCell = (props: CellContext<any, any>) => {
className="w-full h-fit flex items-center justify-center" className="w-full h-fit flex items-center justify-center"
> >
{isActive ? {isActive ?
<div className="flex flex-col"> <Input
<Input value={value}
value={value} onChange={e => setValue(e.target.value)} // onBlur={handleClose}
onChange={e => setValue(e.target.value)} // onBlur={handleClose} autoFocus={true}
autoFocus={true} onBlur={handleClose}
onKeyDown={handleKeyDown} onKeyDown={handleKeyDown}
/> className="w-full"
<div className="flex flex-row justify-end gap-1 w-full pt-2"> />
<Button variant="outline" className="p-2 h-fit" onClick={handleConfirm}><Check size="1rem" /></Button>
<Button variant="outline" className="p-2 h-fit" onClick={handleClose}><CircleX size="1rem" /></Button>
</div>
</div>
: <p>{value}</p> : <p>{value}</p>
} }
</div>) </div>)