update src/components/ProductSalesAmount/Design1/index.js

master
mahdi 3 years ago
parent 603401ee95
commit 7e047ff713
  1. 9
      src/components/ProductSalesAmount/Design1/index.js

@ -19,25 +19,24 @@ const Design1 = ({ title, price, incomes }) => {
{incomes.map((income, index) => ( {incomes.map((income, index) => (
<div key={index} className="flex flex-col p-4"> <div key={index} className="flex flex-col p-4">
<p className="text-base">{income.name}</p> <p className="text-base">{income.name}</p>
<p className="text-lg font-sansbold text-center my-2"> <p className="text-lg font-sansbold text-center my-2 ">
{income.income} {income.income}
</p> </p>
<div <div
className={`w-12 my-2 p-1 flex flex-row items-center justify-between self-end rounded ${ className={`w-12 p-1 my-2 flex flex-row items-center justify-between self-end rounded ${
income.percent > 0 ? "bg-green-100" : "bg-red-100" income.percent > 0 ? "bg-green-100" : "bg-red-100"
}`} }`}
> >
<span <span
style={{ direction: "initial" }}
className={`font-sansbold text-sm ${ className={`font-sansbold text-sm ${
income.percent > 0 ? "text-green-500" : "text-red-500" income.percent > 0 ? "text-green-500" : "text-red-500"
}`} }`}
> >
{income.percent} {income.percent}
</span> </span>
<img src={income.logo} alt="" /> <img src={income.logo} alt="logo" />
</div> </div>
<p className="text-xs leading-5 text-justify mt-2"> <p className="text-xs leading-5 text-justify mt-4">
{income.excerpt} {income.excerpt}
</p> </p>
</div> </div>

Loading…
Cancel
Save