|
|
@ -59,13 +59,15 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi |
|
|
|
setId(0) |
|
|
|
setId(0) |
|
|
|
setDescription('') |
|
|
|
setDescription('') |
|
|
|
setName('') |
|
|
|
setName('') |
|
|
|
|
|
|
|
setParent(null) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
const handleCancel = () => { |
|
|
|
const handleCancel = () => { |
|
|
|
closeDialog('cancel', 'none') |
|
|
|
closeDialog('cancel', 'none') |
|
|
|
setId(0) |
|
|
|
setId(0) |
|
|
|
setDescription('') |
|
|
|
setDescription('') |
|
|
|
setName('') |
|
|
|
setName('') |
|
|
|
|
|
|
|
setParent(null) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const renderForm = () => { |
|
|
|
const renderForm = () => { |
|
|
|