This commit is contained in:
2026-01-01 01:05:22 -03:00
parent bad7e15f46
commit e3aff10140
6 changed files with 108 additions and 93 deletions

View File

@@ -5,6 +5,7 @@ import { calcInterest, type CreditCard } from './payment'
import type { PaymentMethod } from '@repo/ui/routes/orders/data'
import type { Enrollment } from '../_.$orgid.enrollments.add/data'
import type { Item } from './bulk'
import type { Address } from './review'
export type WizardState = {
index: number
@@ -15,6 +16,7 @@ export type WizardState = {
installments?: number
payment_method?: PaymentMethod
credit_card?: CreditCard
address?: Address
}
type Summary = {
@@ -36,7 +38,12 @@ const emptyWizard: WizardState = {
index: 0,
kind: 'bulk',
items: [],
enrollments: []
enrollments: [],
address: undefined,
coupon: undefined,
installments: undefined,
payment_method: undefined,
credit_card: undefined
}
export const useWizardStore = create<WizardStore>()(