fix: react-doctor modal/dialog/dropzone a11y — 18 files to role+tabIndex+onKeyDown or dialog

This commit is contained in:
Nora
2026-06-26 03:20:10 -06:00
parent e3c1295e62
commit d0bfec9d36
90 changed files with 747 additions and 408 deletions
+6 -4
View File
@@ -66,13 +66,15 @@ await getSession(); // 1. If not collecting tax, return zero
const stripe = new Stripe(stripeKey);
// Build Stripe line items for tax calculation — only taxable items
const lineItems: Stripe.Tax.CalculationCreateParams.LineItem[] = params.items
.filter((item) => item.is_taxable !== false)
.map((item) => ({
const lineItems: Stripe.Tax.CalculationCreateParams.LineItem[] = [];
for (const item of params.items) {
if (item.is_taxable === false) continue;
lineItems.push({
amount: Math.round(item.price * item.quantity * 100), // cents
reference: item.id,
tax_behavior: "exclusive",
}));
});
}
// If no taxable items, return zero tax
if (lineItems.length === 0) {