summaryrefslogtreecommitdiffhomepage
path: root/packages/console/app/src/component
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-09-23 17:58:26 -0400
committerFrank <[email protected]>2025-09-23 17:58:27 -0400
commitedd6198999e956f9cccde0d67b8719b6b68188e3 (patch)
tree36073c8a2efca29381f5be6c4d58e6e5f271e5a5 /packages/console/app/src/component
parentc3b2c27997261b07db8efb3e0a4819dccb90a8b8 (diff)
downloadopencode-edd6198999e956f9cccde0d67b8719b6b68188e3.tar.gz
opencode-edd6198999e956f9cccde0d67b8719b6b68188e3.zip
zen: refund
Diffstat (limited to 'packages/console/app/src/component')
-rw-r--r--packages/console/app/src/component/workspace/payment-section.module.css4
-rw-r--r--packages/console/app/src/component/workspace/payment-section.tsx4
2 files changed, 7 insertions, 1 deletions
diff --git a/packages/console/app/src/component/workspace/payment-section.module.css b/packages/console/app/src/component/workspace/payment-section.module.css
index ea8e2ed42..2e1afe78b 100644
--- a/packages/console/app/src/component/workspace/payment-section.module.css
+++ b/packages/console/app/src/component/workspace/payment-section.module.css
@@ -40,6 +40,10 @@
&[data-slot="payment-amount"] {
color: var(--color-text);
+
+ &[data-refunded="true"] {
+ text-decoration: line-through;
+ }
}
}
diff --git a/packages/console/app/src/component/workspace/payment-section.tsx b/packages/console/app/src/component/workspace/payment-section.tsx
index 826ec7a55..5cdb0cd78 100644
--- a/packages/console/app/src/component/workspace/payment-section.tsx
+++ b/packages/console/app/src/component/workspace/payment-section.tsx
@@ -85,7 +85,9 @@ export function PaymentSection() {
{formatDateForTable(date)}
</td>
<td data-slot="payment-id">{payment.id}</td>
- <td data-slot="payment-amount">${((payment.amount ?? 0) / 100000000).toFixed(2)}</td>
+ <td data-slot="payment-amount" data-refunded={!!payment.timeRefunded}>
+ ${((payment.amount ?? 0) / 100000000).toFixed(2)}
+ </td>
<td data-slot="payment-receipt">
<button
onClick={async () => {