fix(payment): resume ezpay orders only after return
This commit is contained in:
@@ -1,12 +1,32 @@
|
||||
import { Suspense } from "react";
|
||||
|
||||
import { MobileShell } from "@/app/_components/core";
|
||||
|
||||
import { SubscriptionPageClient } from "./subscription-page-client";
|
||||
import { SubscriptionScreen } from "./subscription-screen";
|
||||
|
||||
export default function SubscriptionPage() {
|
||||
return (
|
||||
<Suspense fallback={<SubscriptionScreen subscriptionType="vip" />}>
|
||||
<Suspense fallback={<SubscriptionFallback />}>
|
||||
<SubscriptionPageClient />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
function SubscriptionFallback() {
|
||||
return (
|
||||
<MobileShell>
|
||||
<div
|
||||
style={{
|
||||
minHeight: "60vh",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
padding: "2rem",
|
||||
color: "#666",
|
||||
}}
|
||||
>
|
||||
Loading subscription...
|
||||
</div>
|
||||
</MobileShell>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user