1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-09 16:53:33 +02:00

Fix flicker of paid plan

This commit is contained in:
Kamran Ahmed
2025-04-17 11:41:41 +01:00
parent 3f0db1526d
commit 8b69b266d5

View File

@@ -82,8 +82,8 @@ export function AICourse(props: AICourseProps) {
{isUpgradeModalOpen && (
<UpgradeAccountModal onClose={() => setIsUpgradeModalOpen(false)} />
)}
{!isPaidUser && isLoggedIn() && (
<div className="absolute max-md:hidden bottom-full left-1/2 -translate-x-1/2 -translate-y-8 text-gray-500">
{!isPaidUser && !isPaidUserLoading && isLoggedIn() && (
<div className="absolute bottom-full left-1/2 -translate-x-1/2 -translate-y-8 text-gray-500 max-md:hidden">
You are on the free plan
<button
onClick={() => setIsUpgradeModalOpen(true)}