From 0ebc2899584781a171afaf95bc5eb7d97653340b Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 25 Jul 2023 22:44:16 +0800 Subject: [PATCH] fix: sidebar data if slow will lead cls (#825) --- src/app/(home)/(activities)/layout.tsx | 4 +++- src/components/home/HomeSidebar.tsx | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/(home)/(activities)/layout.tsx b/src/app/(home)/(activities)/layout.tsx index 2f0c9004..06837fa0 100644 --- a/src/app/(home)/(activities)/layout.tsx +++ b/src/app/(home)/(activities)/layout.tsx @@ -19,7 +19,9 @@ export default async function ActivitiesLayout({ {children} - +
+ +
) } diff --git a/src/components/home/HomeSidebar.tsx b/src/components/home/HomeSidebar.tsx index b342aaae..797d4c0e 100644 --- a/src/components/home/HomeSidebar.tsx +++ b/src/components/home/HomeSidebar.tsx @@ -15,7 +15,7 @@ export async function HomeSidebar({ hideSearch }: { hideSearch?: boolean }) { const { t } = await getTranslation("index") return ( -
+ <> {!hideSearch && }
@@ -63,6 +63,6 @@ export async function HomeSidebar({ hideSearch }: { hideSearch?: boolean }) {
-
+ ) }