feat: dynamic tax thresholds from backend (#5342)
* feat: dynamic tax thresholds from backend * fix: lint & i18n
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user