-
- {/* Subscription Status Messages */}
- {subscribed && !user?.role?.nwc && (
-
-
-
Thank you for your support 🎉
-
Pay-as-you-go subscription requires manual renewal on {subscribedUntil.toLocaleDateString()}
-
- )}
- {subscribed && user?.role?.nwc && (
-
-
-
Thank you for your support 🎉
-
Recurring subscription will AUTO renew on {subscribedUntil.toLocaleDateString()}
-
- )}
- {(!subscribed && !subscriptionExpiredAt) && (
-
-
-
- )}
- {subscriptionExpiredAt && (
-
-
-
- )}
+ {user &&
}
+
+
diff --git a/src/pages/subscribe.js b/src/pages/subscribe.js
index 9eecf5d..04c2db6 100644
--- a/src/pages/subscribe.js
+++ b/src/pages/subscribe.js
@@ -4,9 +4,8 @@ import { useRouter } from 'next/router';
import { useToast } from '@/hooks/useToast';
import axios from 'axios';
import { Card } from 'primereact/card';
-import { Message } from 'primereact/message';
+import SubscribeModal from '@/components/profile/subscription/SubscribeModal';
import useWindowWidth from '@/hooks/useWindowWidth';
-import { Menu } from "primereact/menu";
import GenericButton from '@/components/buttons/GenericButton';
import { ProgressSpinner } from 'primereact/progressspinner';
import SubscriptionPaymentButtons from '@/components/bitcoinConnect/SubscriptionPaymentButton';
@@ -122,61 +121,13 @@ const Subscribe = () => {
},
];
- const subscriptionCardTitleAndButton = (
-
- Plebdevs Subscription
- menu.current.toggle(e)}
- >
-
-
- );
-
- const subscriptionCardTitle = (
-
- Plebdevs Subscription
-
- );
-
return (
{windowWidth < 768 && (
Subscription Management
)}
- {session && session?.user ? (
- <>
- {subscribed && !user?.role?.nwc && (
-
-
-
Thank you for your support 🎉
-
Pay-as-you-go subscription must be manually renewed on {subscribedUntil.toLocaleDateString()}
-
- )}
- {subscribed && user?.role?.nwc && (
-
-
-
Thank you for your support 🎉
-
Recurring subscription will AUTO renew on {subscribedUntil.toLocaleDateString()}
-
- )}
- {(!subscribed && !subscriptionExpiredAt) && (
-
-
-
- )}
- {subscriptionExpiredAt && (
-
-
-
- )}
- >
- ) : (
-
-
-
- )}
+
{!session?.user && (