remove the non-working buttons from the device edit field.
This commit is contained in:
parent
4ebffc529f
commit
74c7e6444e
|
@ -27,6 +27,7 @@ function EditField({value, onEdit}) {
|
||||||
}, [setEditing, setTempValue, value, cancelTimeout])
|
}, [setEditing, setTempValue, value, cancelTimeout])
|
||||||
|
|
||||||
const confirm = useCallback(() => {
|
const confirm = useCallback(() => {
|
||||||
|
console.log("confirmed")
|
||||||
cancelTimeout()
|
cancelTimeout()
|
||||||
setEditing(false)
|
setEditing(false)
|
||||||
onEdit(tempValue)
|
onEdit(tempValue)
|
||||||
|
@ -56,8 +57,6 @@ function EditField({value, onEdit}) {
|
||||||
}}
|
}}
|
||||||
style={{marginRight: 8}}
|
style={{marginRight: 8}}
|
||||||
/>
|
/>
|
||||||
<Button icon="check" size="tiny" onClick={confirm} />
|
|
||||||
<Button icon="repeat" size="tiny" onClick={abort} />
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue