feat: Display a shimmer loading placeholder for the subscription CTA button and update its disabled condition.

This commit is contained in:
pradeepkumar
2026-03-19 11:57:43 +05:30
parent a5fb2fda46
commit 2617262a74

View File

@@ -189,14 +189,16 @@ export function SubscriptionForm() {
</div>
{/* CTA Button */}
{isActive ? (
{loading ? (
<div className="h-[52px] w-[180px] rounded-[15px] shimmer-loading" />
) : isActive ? (
<span className="inline-block bg-green-100 text-green-700 font-fractul font-bold text-[14px] px-6 py-3 rounded-[15px]">
Current Plan
</span>
) : (
<button
onClick={handleGetPremium}
disabled={actionLoading || loading}
disabled={actionLoading}
className="bg-[#e58625] border border-[#e58625] text-white font-fractul font-bold text-[14px] px-10 py-4 rounded-[15px] hover:bg-[#d47920] transition-colors disabled:opacity-50"
>
{actionLoading ? 'Processing...' : 'Get Premium Access'}