From 27268efe049f5d09d842151d97c38081648b577f Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Tue, 23 May 2023 10:15:16 +0700 Subject: [PATCH] Fix progress bar when there is no progress --- src/views/Dashboard/Components/index.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/Dashboard/Components/index.js b/src/views/Dashboard/Components/index.js index 3310481..ab99df1 100644 --- a/src/views/Dashboard/Components/index.js +++ b/src/views/Dashboard/Components/index.js @@ -64,8 +64,13 @@ export const ProgressPlanningBar = ({progress}) => { ) } } - else { - return null; + else { + return ( +
+
+ Planning : 0% +
+ ) } } @@ -88,7 +93,12 @@ export const ProgressActualBar = ({progress}) => { } } else { - return null; + return ( +
+
+ Actual : 0% +
+ ) } } @@ -163,4 +173,4 @@ export const PopupContent = (item) => { ${item.report_notes} `; -} \ No newline at end of file +}