From 6019199055abd1674e3234855fdfe96a43379259 Mon Sep 17 00:00:00 2001 From: isra el Date: Sat, 15 Mar 2025 20:03:08 +0300 Subject: [PATCH] chore(web): improve account page ui --- .../(components)/account-settings.tsx | 49 ++++++++++++------- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/web/app/(app)/dashboard/(components)/account-settings.tsx b/web/app/(app)/dashboard/(components)/account-settings.tsx index 5f7dde5..faa968b 100644 --- a/web/app/(app)/dashboard/(components)/account-settings.tsx +++ b/web/app/(app)/dashboard/(components)/account-settings.tsx @@ -249,6 +249,26 @@ export default function AccountSettings() {
+
+ +
+

+ Start Date +

+

+ {currentSubscription?.subscriptionStartDate + ? new Date( + currentSubscription?.subscriptionStartDate + ).toLocaleDateString('en-US', { + month: 'long', + day: 'numeric', + year: 'numeric', + }) + : '-:-'} +

+
+
+
@@ -269,19 +289,12 @@ export default function AccountSettings() {
-
- -
-

Quota

-

- {currentSubscription?.plan?.quota} -

-
-
- -
-
-
+
+

+ Usage Limits +

+
+

Daily

@@ -305,7 +318,7 @@ export default function AccountSettings() { )}

-
+

Monthly

@@ -322,14 +335,14 @@ export default function AccountSettings() { -

Unlimited (within monthly limit)

+

Unlimited (within fair usage)

)}

-
+

Bulk

{currentSubscription?.plan?.bulkSendLimit === -1 @@ -355,7 +368,7 @@ export default function AccountSettings() {

-
+
{currentSubscription?.plan?.name?.toLowerCase() === 'free' ? ( Manage Subscription →