do not show paywall while loading
This commit is contained in:
parent
34fe998456
commit
b0f6da3040
1 changed files with 5 additions and 3 deletions
|
|
@ -44,9 +44,13 @@ const VideoList: NextPage = () => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex w-full grow items-start justify-center overflow-auto bg-[#fbfbfb] pt-14">
|
<div className="flex w-full grow items-start justify-center overflow-auto bg-[#fbfbfb] pt-14">
|
||||||
{["active", "past_due"].includes(
|
{!isLoading &&
|
||||||
|
status !== "loading" &&
|
||||||
|
!["active", "past_due"].includes(
|
||||||
session?.user.stripeSubscriptionStatus ?? ""
|
session?.user.stripeSubscriptionStatus ?? ""
|
||||||
) ? (
|
) ? (
|
||||||
|
<Checkout />
|
||||||
|
) : (
|
||||||
<div className="flex-start grid w-full max-w-[1300px] grid-cols-[repeat(auto-fill,250px)] flex-row flex-wrap items-center justify-center gap-14 px-4 pb-16">
|
<div className="flex-start grid w-full max-w-[1300px] grid-cols-[repeat(auto-fill,250px)] flex-row flex-wrap items-center justify-center gap-14 px-4 pb-16">
|
||||||
{videos &&
|
{videos &&
|
||||||
videos.map(({ title, id, createdAt }) => (
|
videos.map(({ title, id, createdAt }) => (
|
||||||
|
|
@ -73,8 +77,6 @@ const VideoList: NextPage = () => {
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
<Checkout />
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue