1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-25 07:51:12 +02:00

style fix

This commit is contained in:
Kushagra Gour
2024-04-16 10:41:45 +05:30
parent b9410f8a23
commit 4c5097782f

View File

@@ -66,6 +66,7 @@ export function Profile({ user, logoutBtnHandler }) {
return (
<VStack gap={2}>
<Header user={user} logoutBtnHandler={logoutBtnHandler} />
{window.user?.isPro && (
<Panel>
{isFetchingSubscription ? (
<LoaderWithText>Loading subscription details...</LoaderWithText>
@@ -81,13 +82,17 @@ export function Profile({ user, logoutBtnHandler }) {
</Text>
<Text>
Subscription Status:{' '}
<Text weight="700">{currentSubscription.attributes.status}</Text>
<Text weight="700">
{currentSubscription.attributes.status}
</Text>
</Text>
<Text>
Renews on:{' '}
<Text weight="700">
{getHumanReadableDate(currentSubscription.attributes.renews_at)}
{getHumanReadableDate(
currentSubscription.attributes.renews_at
)}
</Text>
</Text>
@@ -115,6 +120,7 @@ export function Profile({ user, logoutBtnHandler }) {
</VStack>
) : null}
</Panel>
)}
{user?.isPro && currentSubscription ? (
<img
class="profile-modal__panda"