HolyNotes: Fix Find

This commit is contained in:
thororen1234 2025-11-08 19:50:28 -05:00
parent d49655dd2b
commit f8b65055a1
No known key found for this signature in database

View file

@ -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<HTMLDivElement>(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[];