remove unneccessary buttons

This commit is contained in:
andrzej 2024-06-30 17:42:33 +02:00
parent 330226ecd6
commit 540413173c
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"
>
{isActive ?
<div className="flex flex-col">
<Input
value={value}
onChange={e => setValue(e.target.value)} // onBlur={handleClose}
autoFocus={true}
onBlur={handleClose}
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>
}
</div>)