From f8b65055a1df471f10730ad12bb67416c121d9f2 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 8 Nov 2025 19:50:28 -0500 Subject: [PATCH] HolyNotes: Fix Find --- .../holyNotes/components/modals/NoteBookTab.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/equicordplugins/holyNotes/components/modals/NoteBookTab.tsx b/src/equicordplugins/holyNotes/components/modals/NoteBookTab.tsx index 3ce4fe6ea..c4c4eb840 100644 --- a/src/equicordplugins/holyNotes/components/modals/NoteBookTab.tsx +++ b/src/equicordplugins/holyNotes/components/modals/NoteBookTab.tsx @@ -5,12 +5,12 @@ */ import { classes } from "@utils/misc"; -import { findByCode } from "@webpack"; +import { findByPropsLazy } from "@webpack"; import { Button, Clickable, Menu, Popout, React, useRef } from "@webpack/common"; import { SvgOverFlowIcon } from "../icons/overFlowIcon"; - +const { overflowIcon } = findByPropsLazy("overflowIcon", "forceButtonsShow"); export function NoteBookTabs({ tabs, selectedTabId, onSelectTab }: { tabs: string[], selectedTabId: string, onSelectTab: (tab: string) => void; }) { const tabBarRef = React.useRef(null); @@ -24,8 +24,6 @@ export function NoteBookTabs({ tabs, selectedTabId, onSelectTab }: { tabs: strin return value !== null && value !== undefined; } - const { overflowIcon } = findByCode("overflowIcon"); - const handleResize = React.useCallback(() => { if (!tabBarRef.current) return; const overflowed = [] as string[];