feat: Display a shimmer loading placeholder for the subscription CTA button and update its disabled condition.
This commit is contained in:
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user