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[];