diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index 5d60e01..b9a0fd8 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -126,6 +126,7 @@ const DashboardProject = () => { const [isReadyGanttParents, setIsReadyGanttParents] = useState(false); const [calculationStatus, setCalculationStatus] = useState(false); const [isHierarchy, setIsHierarchy] = useState(false); + const [isScurve, setIsScurve] = useState(false); let history = useHistory(); useEffect(() => { @@ -136,6 +137,12 @@ const DashboardProject = () => { getComments(); getGantt(); getGanttParents(); + const currentURL = window.location.href; + if (currentURL.includes("dashboard-project")) { + setIsScurve(true); + } else { + setIsScurve(false); + } return () => { console.log("unmount RenderMap"); }; @@ -1018,7 +1025,7 @@ const DashboardProject = () => { - +
{
- {/* -
+ {isScurve === true ? ( + +
{
- */} + + ) : ''}
{ - {/* - -
*/} - {/*
Health By Schedule
-
-
On Budget
-
*/} - {/* - Total Invoice - - {isReadyIntegrationInvoice ? ( - totalInvoice ? ( - renderFormatRupiah(totalInvoice, "Rp.") + + {isScurve === true ? ( + +
+ {/*
Health By Schedule
+
+
On Budget
+
*/} + + Total Invoice + + {isReadyIntegrationInvoice ? ( + totalInvoice ? ( + renderFormatRupiah(totalInvoice, "Rp.") + ) : ( + "-" + ) ) : ( - "-" - ) - ) : ( - - )} - - - - Cash In - - {isReadyIntegrationInvoice ? ( - cashIn ? ( - renderFormatRupiah(cashIn, "Rp.") + + )} + + + + Cash In + + {isReadyIntegrationInvoice ? ( + cashIn ? ( + renderFormatRupiah(cashIn, "Rp.") + ) : ( + "-" + ) ) : ( - "-" - ) - ) : ( - - )} - - - - -
- -
- - Outstanding Balance - - {isReadyIntegrationInvoice ? ( - outstandingBalance ? ( - renderFormatRupiah(outstandingBalance, "Rp.") + + )} + + + + +
+ +
+ + Outstanding Balance + + {isReadyIntegrationInvoice ? ( + outstandingBalance ? ( + renderFormatRupiah(outstandingBalance, "Rp.") + ) : ( + "-" + ) ) : ( - "-" - ) - ) : ( - - )} - - -
- -
*/} + + )} + +
+
+ + ):''} +