food item discount color
This commit is contained in:
@@ -131,19 +131,22 @@ const MenuItem = ({ food }: MenuItemProps) => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
<div className="inline-flex mt-2 gap-2 justify-between w-full items-center">
|
<div className="inline-flex mt-2 gap-2 justify-between w-full items-start">
|
||||||
<div className="w-full flex flex-col gap-1" dir="ltr">
|
<div
|
||||||
|
className="w-full flex flex-col gap-1 items-end"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
{hasDiscount ? (
|
{hasDiscount ? (
|
||||||
<>
|
<>
|
||||||
<span className="text-xs text-disabled-text line-through">
|
<span className="text-xs text-disabled-text line-through">
|
||||||
{formattedOriginalPrice} T
|
{formattedOriginalPrice} T
|
||||||
</span>
|
</span>
|
||||||
<span className="text-sm font-medium text-primary dark:text-foreground">
|
<span className="text-sm font-medium text-black dark:text-white">
|
||||||
{formattedPrice} T
|
{formattedPrice} T
|
||||||
</span>
|
</span>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<span className="text-sm mt-1 text-right">
|
<span className="text-sm text-right">
|
||||||
{formattedPrice} T
|
{formattedPrice} T
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user