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