fix: suppress navigate search type error in usePagination; fix setBillingUnit cast
Some checks failed
Build & Release / build (push) Failing after 35s

- use-pagination.ts: ts-expect-error on navigate call — search type resolves as never without route context, safe with strict:false
- $enrollmentId.tsx: wrap onValueChange to cast string to billingUnit union type

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ryan Moon
2026-04-05 10:40:23 -05:00
parent 505f8fd4e4
commit 5750af83d8
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ export function usePagination() {
}
function setParams(updates: Partial<PaginationSearch>) {
// @ts-expect-error: navigate without a route context resolves search as never; safe here since we use strict:false
navigate({
search: (prev: any) => ({
...prev,

View File

@@ -265,7 +265,7 @@ function DetailsTab({
onChange={(e) => setBillingInterval(e.target.value)}
className="w-20"
/>
<Select value={billingUnit} onValueChange={setBillingUnit}>
<Select value={billingUnit} onValueChange={(v) => setBillingUnit(v as typeof billingUnit)}>
<SelectTrigger className="w-36"><SelectValue /></SelectTrigger>
<SelectContent>
{BILLING_UNITS.map((u) => (