|
|
|
@ -7,7 +7,6 @@ import 'antd/dist/antd.css';
|
|
|
|
|
import { useTranslation } from 'react-i18next'; |
|
|
|
|
|
|
|
|
|
const { Option } = Select |
|
|
|
|
const company_id = window.localStorage.getItem('company_id'); |
|
|
|
|
const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdit, dataMenu }) => { |
|
|
|
|
const [id, setId] = useState(0) |
|
|
|
|
const [name, setName] = useState('') |
|
|
|
@ -69,7 +68,6 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi
|
|
|
|
|
sequence: parseInt(sequence), |
|
|
|
|
icon, |
|
|
|
|
alias_name: aliasName, |
|
|
|
|
company_id |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (parentId && parentId > 0) { |
|
|
|
@ -85,7 +83,6 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi
|
|
|
|
|
sequence: parseInt(sequence), |
|
|
|
|
icon, |
|
|
|
|
alias_name: aliasName, |
|
|
|
|
company_id |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (parentId && parentId > 0) { |
|
|
|
|