mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-26 08:11:17 +02:00
style fix
This commit is contained in:
@@ -66,6 +66,7 @@ export function Profile({ user, logoutBtnHandler }) {
|
|||||||
return (
|
return (
|
||||||
<VStack gap={2}>
|
<VStack gap={2}>
|
||||||
<Header user={user} logoutBtnHandler={logoutBtnHandler} />
|
<Header user={user} logoutBtnHandler={logoutBtnHandler} />
|
||||||
|
{window.user?.isPro && (
|
||||||
<Panel>
|
<Panel>
|
||||||
{isFetchingSubscription ? (
|
{isFetchingSubscription ? (
|
||||||
<LoaderWithText>Loading subscription details...</LoaderWithText>
|
<LoaderWithText>Loading subscription details...</LoaderWithText>
|
||||||
@@ -81,13 +82,17 @@ export function Profile({ user, logoutBtnHandler }) {
|
|||||||
</Text>
|
</Text>
|
||||||
<Text>
|
<Text>
|
||||||
Subscription Status:{' '}
|
Subscription Status:{' '}
|
||||||
<Text weight="700">{currentSubscription.attributes.status}</Text>
|
<Text weight="700">
|
||||||
|
{currentSubscription.attributes.status}
|
||||||
|
</Text>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text>
|
<Text>
|
||||||
Renews on:{' '}
|
Renews on:{' '}
|
||||||
<Text weight="700">
|
<Text weight="700">
|
||||||
{getHumanReadableDate(currentSubscription.attributes.renews_at)}
|
{getHumanReadableDate(
|
||||||
|
currentSubscription.attributes.renews_at
|
||||||
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
@@ -115,6 +120,7 @@ export function Profile({ user, logoutBtnHandler }) {
|
|||||||
</VStack>
|
</VStack>
|
||||||
) : null}
|
) : null}
|
||||||
</Panel>
|
</Panel>
|
||||||
|
)}
|
||||||
{user?.isPro && currentSubscription ? (
|
{user?.isPro && currentSubscription ? (
|
||||||
<img
|
<img
|
||||||
class="profile-modal__panda"
|
class="profile-modal__panda"
|
||||||
|
Reference in New Issue
Block a user