fix
This commit is contained in:
@@ -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>()(
|
||||
|
||||
Reference in New Issue
Block a user