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

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

@ -23,21 +23,20 @@ const Design1 = ({ title, price, incomes }) => {
{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