Skip to content

Commit

Permalink
Fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
goncy committed Feb 17, 2024
1 parent 2289b1e commit 7d5bb42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/cart/components/CartItemDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ function CartItemDrawer({
handleSelectOption(option);
}}
/>
<Label htmlFor={option.title}>
<div className="flex w-full justify-between">
<Label className="w-full" htmlFor={option.title}>
<div className="flex w-full items-center justify-between gap-2">
<p>{option.title}</p>
{Boolean(option.price) && (
<div className="flex items-center gap-2">
<span className="text-lg leading-tight text-muted-foreground">
<div className="flex items-center gap-1">
<p className="text-muted-foreground">
{option.price < 0 ? "-" : "+"}
</span>
</p>
<p className="font-medium">
{parseCurrency(Math.abs(option.price))}
</p>
Expand Down

0 comments on commit 7d5bb42

Please sign in to comment.