From 194e53fba6191d4b623ce625a28714daf033f407 Mon Sep 17 00:00:00 2001 From: farhantock Date: Thu, 7 Dec 2023 16:13:25 +0700 Subject: [PATCH] remove console log --- src/views/SimproV2/CreatedProyek/DialogGantt.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views/SimproV2/CreatedProyek/DialogGantt.js b/src/views/SimproV2/CreatedProyek/DialogGantt.js index 3af6883..27e0380 100644 --- a/src/views/SimproV2/CreatedProyek/DialogGantt.js +++ b/src/views/SimproV2/CreatedProyek/DialogGantt.js @@ -1,5 +1,5 @@ import React, { useEffect, useState, useMemo } from 'react' -import { Modal, ModalHeader, ModalBody, ModalFooter, Breadcrumb, BreadcrumbItem} from 'reactstrap'; +import { Modal, ModalHeader, ModalBody, ModalFooter, Breadcrumb, BreadcrumbItem } from 'reactstrap'; import { Button } from 'reactstrap'; import { Table, Tooltip, Spin } from 'antd'; import 'antd/dist/antd.css'; @@ -19,13 +19,11 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName user_id = user_id; token = token; isLogin = isLogin; - console.log('props.location.state success'); } else { role_id = localStorage.getItem("role_id"); user_id = localStorage.getItem("user_id"); token = localStorage.getItem("token"); isLogin = localStorage.getItem("isLogin"); - console.error('Undefined in props.location.state'); } const HEADER = { headers: { @@ -171,7 +169,7 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName role_id: role_id, user_id: user_id, } - }}> + }}> {" "} @@ -233,10 +231,10 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName if (status == "Save") { getdataGantt() NotificationManager.success(`Gantt berhasil dibuat!`, 'Success!!'); - }else if (status == "Edit") { + } else if (status == "Edit") { getdataGantt() NotificationManager.success(`Gantt berhasil dibubah!`, 'Failed!!'); - }else if (status == "failed") { + } else if (status == "failed") { NotificationManager.error(`Gantt gagal dibuat!`, 'Failed!!'); } setDataEdit([]) @@ -269,10 +267,10 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName Project {hierarchyName} - : + :
Gantt Project {proyekName}
} - {!hierarchyId && (<> + {!hierarchyId && (<> )} @@ -308,6 +306,7 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName closeDialog={closeDialogForm} typeDialog={typeDialog} dataEdit={dataEdit} + user_id={user_id} />