From 9bf243447c931039c6b2373e7b847efe54e78a07 Mon Sep 17 00:00:00 2001 From: mahdi Date: Tue, 3 May 2022 19:07:39 +0430 Subject: [PATCH] update src/components/ProductSalesAmount/Design2/index.js --- .../ProductSalesAmount/Design2/index.js | 38 +++++++++++++++---- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/src/components/ProductSalesAmount/Design2/index.js b/src/components/ProductSalesAmount/Design2/index.js index 38f32ce..92458d1 100644 --- a/src/components/ProductSalesAmount/Design2/index.js +++ b/src/components/ProductSalesAmount/Design2/index.js @@ -13,11 +13,7 @@ const Design2 = ({ incomes }) => { {incomes.map((income, index) => (
- + {income.progressBar}

{income.percentNumb}

))} @@ -34,24 +30,52 @@ Design2.defaultProps = { bgColor: "#26E58C", width: "96%", percentNumb: "110", + progressBar: ( + + ), }, { image: ellipse, bgColor: "#FFEE00", width: "44%", percentNumb: "72", + progressBar: ( + + ), }, { image: ellipse, bgColor: "#EC4C19", - width: "20%", + width: "2%", percentNumb: "20", + progressBar: ( + + ), }, { image: ellipse, bgColor: "#0077FF", - width: "75%", + width: "33%", percentNumb: "80", + progressBar: ( + + ), }, ], };