remove the non-working buttons from the device edit field.

This commit is contained in:
gluap 2023-07-08 13:55:23 +02:00
parent 4ebffc529f
commit 74c7e6444e
No known key found for this signature in database

View file

@ -27,6 +27,7 @@ function EditField({value, onEdit}) {
}, [setEditing, setTempValue, value, cancelTimeout])
const confirm = useCallback(() => {
console.log("confirmed")
cancelTimeout()
setEditing(false)
onEdit(tempValue)
@ -56,8 +57,6 @@ function EditField({value, onEdit}) {
}}
style={{marginRight: 8}}
/>
<Button icon="check" size="tiny" onClick={confirm} />
<Button icon="repeat" size="tiny" onClick={abort} />
</>
)
} else {