Skip to content

Commit c9301d1

Browse files
committed
add inactive pill
1 parent d9ca433 commit c9301d1

File tree

1 file changed

+10
-3
lines changed
  • app/javascript/components/server-components/CheckoutDashboard

1 file changed

+10
-3
lines changed

app/javascript/components/server-components/CheckoutDashboard/UpsellsPage.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,18 @@ const UpsellsPage = (props: {
271271
aria-selected={selectedUpsellId === upsell.id}
272272
>
273273
<td>
274-
<div>
274+
<div className="flex gap-4">
275275
<div>
276-
<b>{upsell.name}</b>
276+
<div>
277+
<b>{upsell.name}</b>
278+
</div>
279+
<small>{formatOfferedProductName(upsell.product.name, upsell.product.variant?.name)}</small>
277280
</div>
278-
<small>{formatOfferedProductName(upsell.product.name, upsell.product.variant?.name)}</small>
281+
{!upsell.is_active && (
282+
<div>
283+
<span className="pill small danger">Inactive</span>
284+
</div>
285+
)}
279286
</div>
280287
</td>
281288
{statistics ? (

0 commit comments

Comments
 (0)