refactor(payment): remove vip status flow
This commit is contained in:
@@ -28,13 +28,11 @@ export interface PaymentContextState {
|
||||
currentOrderId: string | null;
|
||||
payParams: Record<string, unknown> | null;
|
||||
orderStatus: MachineContext["orderStatus"];
|
||||
vipStatus: MachineContext["vipStatus"];
|
||||
errorMessage: string | null;
|
||||
launchNonce: number;
|
||||
isLoadingPlans: boolean;
|
||||
isCreatingOrder: boolean;
|
||||
isPollingOrder: boolean;
|
||||
isCheckingVipStatus: boolean;
|
||||
isPaid: boolean;
|
||||
}
|
||||
|
||||
@@ -59,14 +57,12 @@ export function PaymentProvider({ children }: PaymentProviderProps) {
|
||||
currentOrderId: state.context.currentOrderId,
|
||||
payParams: state.context.payParams,
|
||||
orderStatus: state.context.orderStatus,
|
||||
vipStatus: state.context.vipStatus,
|
||||
errorMessage: state.context.errorMessage,
|
||||
launchNonce: state.context.launchNonce,
|
||||
isLoadingPlans: state.matches("loadingPlans"),
|
||||
isCreatingOrder: state.matches("creatingOrder"),
|
||||
isPollingOrder:
|
||||
state.matches("pollingOrder") || state.matches("waitingForPayment"),
|
||||
isCheckingVipStatus: state.matches("checkingVipStatus"),
|
||||
isPaid: state.matches("paid"),
|
||||
}),
|
||||
[state],
|
||||
|
||||
Reference in New Issue
Block a user