From 4510fb51aa9cb5ca66a6b2ead008f3629d6bca0e Mon Sep 17 00:00:00 2001 From: Hy Nguyen Date: Fri, 11 Oct 2024 13:24:21 -0500 Subject: [PATCH] landing page style changes, remove error notifications on fetching profile and avatar --- app/components/SidePanel.tsx | 5 ++--- app/root.tsx | 1 - app/routes/_index/index.tsx | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/components/SidePanel.tsx b/app/components/SidePanel.tsx index 5ee6a5a..73a2614 100644 --- a/app/components/SidePanel.tsx +++ b/app/components/SidePanel.tsx @@ -47,8 +47,7 @@ export default function SidePanel({ .single(); if (error) { - console.error("Error fetching avatar"); - addNotification("Error fetching avatar", "FAIL"); + console.error("Error fetching avatar", error); return; } @@ -158,7 +157,7 @@ export default function SidePanel({ <> {/* Avatar & display name */}
-
+
{avatarUri === "" ? (
diff --git a/app/root.tsx b/app/root.tsx index b28ab41..2c88fff 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -174,7 +174,6 @@ function App() { .single(); if (profileError) { console.error("Error fetching profile", profileError); - addNotification("Error fetching profile", "FAIL"); } else { setUserDisplayName(profileData.display_name); } diff --git a/app/routes/_index/index.tsx b/app/routes/_index/index.tsx index 03a19db..0496d72 100644 --- a/app/routes/_index/index.tsx +++ b/app/routes/_index/index.tsx @@ -79,13 +79,13 @@ export default function LandingPage() { backgroundSize: "cover", backgroundPosition: "center", }} - className="relative z-30 -mt-24 flex h-[90vh] w-full flex-col items-center justify-center overflow-hidden" + className="relative z-30 -mt-24 flex h-[85vh] w-full flex-col items-center justify-center overflow-hidden" > -

+

Discover your next favorite toys here at TOYSHOP.

-