HolyNotes: Fix Find
This commit is contained in:
parent
d49655dd2b
commit
f8b65055a1
1 changed files with 2 additions and 4 deletions
|
|
@ -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[];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue