From 19596b95894a312c02def93636051f2b751df87d Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sun, 22 Sep 2024 21:52:42 -0400 Subject: [PATCH] make the user setting pages more responsive --- src/app/(pages)/dashboard/user/settings/page.tsx | 2 +- src/components/dashboard/user/profile/avatar-setting.tsx | 4 ++-- src/components/dashboard/user/profile/email-setting.tsx | 6 +++--- src/components/dashboard/user/profile/tier-setting.tsx | 4 ++-- .../dashboard/user/profile/username-setting.tsx | 6 +++--- .../dashboard/user/settings/device/devices-setting.tsx | 8 ++++---- .../dashboard/user/settings/tfa/tfa-setting.tsx | 4 ++-- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/app/(pages)/dashboard/user/settings/page.tsx b/src/app/(pages)/dashboard/user/settings/page.tsx index 62ad084..b2c686f 100644 --- a/src/app/(pages)/dashboard/user/settings/page.tsx +++ b/src/app/(pages)/dashboard/user/settings/page.tsx @@ -12,7 +12,7 @@ import DashboardHeader from "@/components/dashboard/dashboard-header"; * @return the page jsx */ const UserSettingsPage = (): ReactElement => ( -
+
{/* Content */} diff --git a/src/components/dashboard/user/profile/avatar-setting.tsx b/src/components/dashboard/user/profile/avatar-setting.tsx index cd78951..dd65fd0 100644 --- a/src/components/dashboard/user/profile/avatar-setting.tsx +++ b/src/components/dashboard/user/profile/avatar-setting.tsx @@ -16,9 +16,9 @@ const AvatarSetting = (): ReactElement => { (state: UserState) => state.user ); return ( -
+
{/* Name & Description */} -
+

Avatar

Set a profile picture for your account. This can be seen by diff --git a/src/components/dashboard/user/profile/email-setting.tsx b/src/components/dashboard/user/profile/email-setting.tsx index 7d3f773..992aa4a 100644 --- a/src/components/dashboard/user/profile/email-setting.tsx +++ b/src/components/dashboard/user/profile/email-setting.tsx @@ -16,9 +16,9 @@ const EmailSetting = (): ReactElement => { (state: UserState) => state.user ); return ( -

+
{/* Name & Description */} -
+

Email

The email you use to login to this account. @@ -27,7 +27,7 @@ const EmailSetting = (): ReactElement => { {/* Setting */} diff --git a/src/components/dashboard/user/profile/tier-setting.tsx b/src/components/dashboard/user/profile/tier-setting.tsx index 1747c6e..f9849de 100644 --- a/src/components/dashboard/user/profile/tier-setting.tsx +++ b/src/components/dashboard/user/profile/tier-setting.tsx @@ -18,9 +18,9 @@ const TierSetting = (): ReactElement => { (state: UserState) => state.user ); return ( -

+
{/* Name & Description */} -
+

Tier

The tier of your account. diff --git a/src/components/dashboard/user/profile/username-setting.tsx b/src/components/dashboard/user/profile/username-setting.tsx index 35bb5be..5738df7 100644 --- a/src/components/dashboard/user/profile/username-setting.tsx +++ b/src/components/dashboard/user/profile/username-setting.tsx @@ -16,9 +16,9 @@ const UsernameSetting = (): ReactElement => { (state: UserState) => state.user ); return ( -

+
{/* Name & Description */} -
+

Username

The username used to identify you on the app. @@ -27,7 +27,7 @@ const UsernameSetting = (): ReactElement => { {/* Setting */} diff --git a/src/components/dashboard/user/settings/device/devices-setting.tsx b/src/components/dashboard/user/settings/device/devices-setting.tsx index 55ca41e..05f458e 100644 --- a/src/components/dashboard/user/settings/device/devices-setting.tsx +++ b/src/components/dashboard/user/settings/device/devices-setting.tsx @@ -41,18 +41,18 @@ const DevicesSetting = (): ReactElement => { }, [fetchDevices]); return ( -

+
{/* Name & Description */} -
+

Devices

-

+

Here is a list of devices logged into your Pulse App account.

{/* Setting */} -
+
{!devices ? ( <> {Array.from({ length: 4 }, (_, index) => ( diff --git a/src/components/dashboard/user/settings/tfa/tfa-setting.tsx b/src/components/dashboard/user/settings/tfa/tfa-setting.tsx index 0b8f8ef..65e24a7 100644 --- a/src/components/dashboard/user/settings/tfa/tfa-setting.tsx +++ b/src/components/dashboard/user/settings/tfa/tfa-setting.tsx @@ -101,9 +101,9 @@ const TFASetting = (): ReactElement => { }; return ( -
+
{/* Name & Description */} -
+

Two-Factor Auth

Enhance your account security with an extra layer of