From 7bcf84f81fbb860c2ab47e6f526636206ef38d75 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Wed, 31 May 2023 11:08:06 +0700 Subject: [PATCH 1/2] Removing fab --- src/views/Dashboard/DashboardProject.js | 11 ----------- src/views/SimproV2/Gantt/index.js | 12 ------------ 2 files changed, 23 deletions(-) diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index a061d1d..74a55cb 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -562,17 +562,6 @@ const DashboardProject = () => { return (
- } - alwaysShowTitle={true} - > - handleRedirect()} - > - - - diff --git a/src/views/SimproV2/Gantt/index.js b/src/views/SimproV2/Gantt/index.js index ef501be..2dbf026 100644 --- a/src/views/SimproV2/Gantt/index.js +++ b/src/views/SimproV2/Gantt/index.js @@ -100,18 +100,6 @@ const Gantt = (props) => {
{ready && }
- } - alwaysShowTitle={true} - style={{bottom: 50, right: 24}} - > - handleRedirect()} - > - - - ); } From 5ef3203c966cd5689dfaa8bacce1b2e5e69c38ed Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Wed, 31 May 2023 13:55:16 +0700 Subject: [PATCH 2/2] update import --- .../CreatedProyek/ImportActivity/index.js | 36 ++----------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/src/views/SimproV2/CreatedProyek/ImportActivity/index.js b/src/views/SimproV2/CreatedProyek/ImportActivity/index.js index 835812d..2a8b5e6 100644 --- a/src/views/SimproV2/CreatedProyek/ImportActivity/index.js +++ b/src/views/SimproV2/CreatedProyek/ImportActivity/index.js @@ -55,10 +55,8 @@ const columnToIndexs = { no: 2, name: 3, weight: 4, - start_date: 5, - end_date: 6, - nik: 7, - duration: 8 + nik: 5, + duration: 6 } const ExcelDateToJSDate = (date) => { @@ -181,19 +179,6 @@ const ImportActivity = ({ params }) => { columnData = columnData.trim().replace(/ /g, '').replace(/<[^\/>][^>]*><\/[^>]+>/g, "") } - // convert excel's DATEVALUE - if(["start_date"].includes(prop)){ - if (columnData) { - columnData = ExcelDateToJSDate(columnData) - } - } - - if(["end_date"].includes(prop)){ - if (columnData) { - columnData = ExcelDateToJSDateEndDay(columnData) - } - } - if(["nik"].includes(prop)){ if(columnData){ let index = dataUserToProject.findIndex((x) => columnData == x.join_first_ktp_number); @@ -300,23 +285,6 @@ const ImportActivity = ({ params }) => { width: '10%', align: 'center', }, - { - title: 'Start Date', - dataIndex: 'start_date', - key: 'start_date', - }, - { - title: 'Finish Date', - dataIndex: 'end_date', - key: 'end_date', - render: (text, record) => { - if(text){ - return {text.substring(0,8)} - } else { - return - } - } - }, { title: 'Duration', dataIndex: 'duration',