feat: dynamic tax thresholds from backend (#5342)

* feat: dynamic tax thresholds from backend

* fix: lint & i18n
This commit is contained in:
Calum H.
2026-02-09 14:42:38 +00:00
committed by GitHub
parent 45a397d52b
commit e962521492
10 changed files with 89 additions and 22 deletions

View File

@@ -31,6 +31,7 @@ export interface GeneratedState extends Labrinth.State.GeneratedState {
approvedStatuses: string[]
rejectedStatuses: string[]
staffRoles: string[]
taxComplianceThresholds?: Record<string, number>
// Metadata
lastGenerated?: string
@@ -121,6 +122,10 @@ export const useGeneratedState = () =>
homePageSearch: generatedState.homePageSearch as Labrinth.Search.v2.SearchResults | undefined,
homePageNotifs: generatedState.homePageNotifs as Labrinth.Search.v2.SearchResults | undefined,
products: generatedState.products as Labrinth.Billing.Internal.Product[] | undefined,
taxComplianceThresholds: (generatedState.taxComplianceThresholds ?? {}) as Record<
string,
number
>,
lastGenerated: generatedState.lastGenerated,
apiUrl: generatedState.apiUrl,