diff --git a/src/components/Profile.jsx b/src/components/Profile.jsx index 3a0ed68..f390c6e 100644 --- a/src/components/Profile.jsx +++ b/src/components/Profile.jsx @@ -66,38 +66,43 @@ export function Profile({ user, logoutBtnHandler }) { return (
- - {isFetchingSubscription ? ( - Loading subscription details... - ) : null} - {currentSubscription ? ( - - - Plan: - - {' '} - {currentSubscription.attributes.product_name} + {window.user?.isPro && ( + + {isFetchingSubscription ? ( + Loading subscription details... + ) : null} + {currentSubscription ? ( + + + Plan: + + {' '} + {currentSubscription.attributes.product_name} + - - - Subscription Status:{' '} - {currentSubscription.attributes.status} - - - - Renews on:{' '} - - {getHumanReadableDate(currentSubscription.attributes.renews_at)} + + Subscription Status:{' '} + + {currentSubscription.attributes.status} + - - - Cancel subscription - - {/* + Renews on:{' '} + + {getHumanReadableDate( + currentSubscription.attributes.renews_at + )} + + + + + Cancel subscription + + {/* Link 3 */} - - ) : null} - + + ) : null} + + )} {user?.isPro && currentSubscription ? (