removed some unnecessary ui elements

This commit is contained in:
Jelaletdin12
2026-02-02 16:22:27 +05:00
parent b8c871750a
commit c68ac335c6
12 changed files with 120 additions and 205 deletions

View File

@@ -47,31 +47,8 @@ export function ProductInfoCard({
</>
)}
{stock !== undefined && (
<>
<div className="flex justify-between items-center py-2">
<span className="text-gray-500">{t("stock")}</span>
<span
className={`font-medium ${
stock === 0
? "text-red-500"
: stock <= 5
? "text-orange-600"
: "text-green-600"
}`}
>
{stock === 0
? t("out_of_stock")
: stock <= 5
? `${t("only_left", { count: stock })}`
: stock}
</span>
</div>
<Separator />
</>
)}
{barcode && (
{/* {barcode && (
<>
<div className="flex justify-between items-center py-2">
<span className="text-gray-500">{t("barcode")}</span>
@@ -79,7 +56,7 @@ export function ProductInfoCard({
</div>
<Separator />
</>
)}
)} */}
{colour && (
<>