From 31c29a8290b71fbcd7ef00ec1ee8c8097f7fd514 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 21 Jun 2024 11:03:58 +0800 Subject: [PATCH] Better event handling on home action icons --- .../web/components/nav-containers/home.tsx | 51 ++++++++++++++----- 1 file changed, 38 insertions(+), 13 deletions(-) diff --git a/packages/web/components/nav-containers/home.tsx b/packages/web/components/nav-containers/home.tsx index 4ff835594..b5069f2bb 100644 --- a/packages/web/components/nav-containers/home.tsx +++ b/packages/web/components/nav-containers/home.tsx @@ -74,7 +74,8 @@ export function HomeContainer(): JSX.Element { > {homeData.sections?.map((homeSection, idx) => { if (homeSection.items.length < 1) { - return <> + console.log('empty home section: ', homeSection) + return } switch (homeSection.layout) { case 'just_added': @@ -110,7 +111,8 @@ export function HomeContainer(): JSX.Element { /> ) default: - return <> + console.log('unknown home section: ', homeSection) + return } })} @@ -629,28 +631,34 @@ const TopPicksItemView = ( {props.homeItem.canSave && ( - )} - {/* */} - {props.homeItem.canArchive && ( )} {props.homeItem.canShare && ( - )}