diff --git a/src/views/SimproV2/CreatedProyek/DialogFormAnalysis.js b/src/views/SimproV2/CreatedProyek/DialogFormAnalysis.js index b39f2cc..55cb384 100644 --- a/src/views/SimproV2/CreatedProyek/DialogFormAnalysis.js +++ b/src/views/SimproV2/CreatedProyek/DialogFormAnalysis.js @@ -15,9 +15,9 @@ const DialogFormAnalysis = ({ closeDialog, toggleDialog, dataDetail, - typeDialogName + typeDialogName, + token }) => { - const token = localStorage.getItem("token"); const [dataTable, setDatatable] = useState([]); const HEADER = { headers: { diff --git a/src/views/SimproV2/CreatedProyek/DialogGantt.js b/src/views/SimproV2/CreatedProyek/DialogGantt.js index 2ca7988..813641b 100644 --- a/src/views/SimproV2/CreatedProyek/DialogGantt.js +++ b/src/views/SimproV2/CreatedProyek/DialogGantt.js @@ -13,7 +13,7 @@ import DialogUserGantt from './DialogUserGantt'; import { Link } from 'react-router-dom'; const { Option } = Select -const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName, companyId, configApp, hierarchyId, hierarchyName, openDialogHierarchy, isLogin, token, role_id, user_id, dataViewStartDate }) => { +const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName, companyId, companyName, hierarchyId, hierarchyName, openDialogHierarchy, isLogin, token, role_id, user_id, dataViewStartDate }) => { const HEADER = { headers: { "Content-Type": "application/json", @@ -134,7 +134,7 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName user_id, company_id: companyId, dataViewStartDate, - configApp: configApp + companyName } }}> diff --git a/src/views/SimproV2/CreatedProyek/ReportAnalysis.js b/src/views/SimproV2/CreatedProyek/ReportAnalysis.js index a141b67..9c9a4e3 100644 --- a/src/views/SimproV2/CreatedProyek/ReportAnalysis.js +++ b/src/views/SimproV2/CreatedProyek/ReportAnalysis.js @@ -28,8 +28,8 @@ import DialogFormAnalysis from './DialogFormAnalysis'; import moment from "moment"; const { Option } = Select -const ReportAnalysis = ({ openDialog, closeDialog, toggleDialog, projectId, proyekName }) => { - const token = localStorage.getItem("token"); +const ReportAnalysis = ({ openDialog, closeDialog, toggleDialog, projectId, proyekName, token }) => { + const [activeTab, setActiveTab] = useState('1'); const [search, setSearch] = useState(''); const [openDialogFormAnalysis, setOpenDialogFormAnalysis] = useState(false); @@ -668,6 +668,7 @@ const ReportAnalysis = ({ openDialog, closeDialog, toggleDialog, projectId, proy toggleDialog={toggleDialogForm} closeDialog={closeDialogForm} dataDetail={dataDetail} + token={token} typeDialogName={typeDialogName} />