From 52166e422812ca9c2e3f9192f39fe1194402dd86 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 19 Sep 2024 21:17:03 -0400 Subject: [PATCH] fix avatars being weird --- src/app/(pages)/dashboard/user/billing/page.tsx | 2 +- src/components/branding.tsx | 9 ++++++++- .../dashboard/sidebar/organization-selector.tsx | 4 ++-- src/components/dashboard/sidebar/sidebar.tsx | 1 + src/components/dashboard/sidebar/user-menu.tsx | 7 ++++--- .../dashboard/user/profile/avatar-setting.tsx | 5 ++++- src/components/dashboard/user/profile/tier-setting.tsx | 4 ++-- .../dashboard/user/settings/tfa/tfa-setting.tsx | 10 ++++++---- src/components/org/organization-logo.tsx | 2 +- src/components/user/user-avatar.tsx | 2 +- 10 files changed, 30 insertions(+), 16 deletions(-) diff --git a/src/app/(pages)/dashboard/user/billing/page.tsx b/src/app/(pages)/dashboard/user/billing/page.tsx index 2119e3d..3079fef 100644 --- a/src/app/(pages)/dashboard/user/billing/page.tsx +++ b/src/app/(pages)/dashboard/user/billing/page.tsx @@ -26,7 +26,7 @@ const UserBillingPage = (): ReactElement => ( {/* Content */}
- Hello World + Billing
); diff --git a/src/components/branding.tsx b/src/components/branding.tsx index af11234..80fdf73 100644 --- a/src/components/branding.tsx +++ b/src/components/branding.tsx @@ -47,8 +47,15 @@ const Branding = ({ href, size, className }: BrandingProps) => ( - Pulse App Logo + Pulse App Logo ); export default Branding; diff --git a/src/components/dashboard/sidebar/organization-selector.tsx b/src/components/dashboard/sidebar/organization-selector.tsx index e686b9e..a85e905 100644 --- a/src/components/dashboard/sidebar/organization-selector.tsx +++ b/src/components/dashboard/sidebar/organization-selector.tsx @@ -82,7 +82,7 @@ const OrganizationSelector = (): ReactElement => { role="combobox" > {selected ? ( -
+
{ (organization: Organization, index: number) => ( selectOrganization( diff --git a/src/components/dashboard/sidebar/sidebar.tsx b/src/components/dashboard/sidebar/sidebar.tsx index fa9c3b5..816b720 100644 --- a/src/components/dashboard/sidebar/sidebar.tsx +++ b/src/components/dashboard/sidebar/sidebar.tsx @@ -28,6 +28,7 @@ const Sidebar = (): ReactElement => {

diff --git a/src/components/dashboard/sidebar/user-menu.tsx b/src/components/dashboard/sidebar/user-menu.tsx index 71b748c..1e11937 100644 --- a/src/components/dashboard/sidebar/user-menu.tsx +++ b/src/components/dashboard/sidebar/user-menu.tsx @@ -72,6 +72,7 @@ const UserMenu = (): ReactElement => { Logout @@ -92,19 +93,19 @@ const MyAccount = (): ReactElement => ( My Account - + Profile - + Billing - + Settings diff --git a/src/components/dashboard/user/profile/avatar-setting.tsx b/src/components/dashboard/user/profile/avatar-setting.tsx index f597468..cd78951 100644 --- a/src/components/dashboard/user/profile/avatar-setting.tsx +++ b/src/components/dashboard/user/profile/avatar-setting.tsx @@ -27,7 +27,10 @@ const AvatarSetting = (): ReactElement => {

{/* Setting */} - +
); }; diff --git a/src/components/dashboard/user/profile/tier-setting.tsx b/src/components/dashboard/user/profile/tier-setting.tsx index ee041c1..4335591 100644 --- a/src/components/dashboard/user/profile/tier-setting.tsx +++ b/src/components/dashboard/user/profile/tier-setting.tsx @@ -29,11 +29,11 @@ const TierSetting = (): ReactElement => { {/* Setting */}
- + {capitalizeWords(user?.tier)} - +