From 97bb3fa4c879cf2a517e59b1f7177c9e49e0a692 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Wed, 22 Feb 2023 22:00:23 -0500 Subject: Fix loader on feb 22 2023 beta --- frontend/src/tabs-hook.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'frontend/src/tabs-hook.tsx') diff --git a/frontend/src/tabs-hook.tsx b/frontend/src/tabs-hook.tsx index d9c76ca6..3498b1aa 100644 --- a/frontend/src/tabs-hook.tsx +++ b/frontend/src/tabs-hook.tsx @@ -128,22 +128,23 @@ class TabsHook extends Logger { let deckyTabAmount = existingTabs.reduce((prev: any, cur: any) => (cur.decky ? prev + 1 : prev), 0); if (deckyTabAmount == this.tabs.length) { for (let tab of existingTabs) { - if (tab?.decky) tab.panel.props.setter[0](visible); + if (tab?.decky && tab?.qAMVisibilitySetter) tab?.qAMVisibilitySetter(visible); } return; } for (const { title, icon, content, id } of this.tabs) { - existingTabs.push({ + const tab: any = { key: id, title, tab: icon, decky: true, - panel: ( - - {content} - - ), - }); + }; + tab.panel = ( + + {content} + + ); + existingTabs.push(tab); } } } -- cgit v1.2.3