mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 11:43:32 -05:00
parent
a40ef29b3a
commit
938bc9f34e
3 changed files with 9 additions and 8 deletions
|
@ -144,8 +144,6 @@ export default new (class NoteHandler {
|
||||||
|
|
||||||
const User = findByCode("tag", "isClyde");
|
const User = findByCode("tag", "isClyde");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (const notebook in notebooks)
|
for (const notebook in notebooks)
|
||||||
for (const noteId in notebooks[notebook]) {
|
for (const noteId in notebooks[notebook]) {
|
||||||
const note = notebooks[notebook][noteId];
|
const note = notebooks[notebook][noteId];
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { classes } from "@utils/misc";
|
import { classes } from "@utils/misc";
|
||||||
import { findByProps } from "@webpack";
|
import { findByCode } from "@webpack";
|
||||||
import { Button, Clickable, Menu, Popout, React } from "@webpack/common";
|
import { Button, Clickable, Menu, Popout, React } from "@webpack/common";
|
||||||
|
|
||||||
import { SvgOverFlowIcon } from "../icons/overFlowIcon";
|
import { SvgOverFlowIcon } from "../icons/overFlowIcon";
|
||||||
|
@ -20,8 +20,11 @@ export function NoteBookTabs({ tabs, selectedTabId, onSelectTab }: { tabs: strin
|
||||||
const resizeObserverRef = React.useRef<ResizeObserver | null>(null);
|
const resizeObserverRef = React.useRef<ResizeObserver | null>(null);
|
||||||
const [show, setShow] = React.useState(false);
|
const [show, setShow] = React.useState(false);
|
||||||
|
|
||||||
const { isNotNullish } = findByProps("isNotNullish");
|
function isNotNullish(value) {
|
||||||
const { overflowIcon } = findByProps("overflowIcon");
|
return value !== null && value !== undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { overflowIcon } = findByCode("overflowIcon");
|
||||||
|
|
||||||
const handleResize = React.useCallback(() => {
|
const handleResize = React.useCallback(() => {
|
||||||
if (!tabBarRef.current) return;
|
if (!tabBarRef.current) return;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
import { classes } from "@utils/misc";
|
import { classes } from "@utils/misc";
|
||||||
import { ModalProps } from "@utils/modal";
|
import { ModalProps } from "@utils/modal";
|
||||||
import { findByCode, findByProps } from "@webpack";
|
import { findByCode, findByCodeLazy, findByProps, findComponentByCodeLazy } from "@webpack";
|
||||||
import { Clipboard, ContextMenuApi, FluxDispatcher, Menu, NavigationRouter, React } from "@webpack/common";
|
import { Clipboard, ContextMenuApi, FluxDispatcher, Menu, NavigationRouter, React } from "@webpack/common";
|
||||||
|
|
||||||
import noteHandler from "../../NoteHandler";
|
import noteHandler from "../../NoteHandler";
|
||||||
|
@ -26,11 +26,11 @@ export const RenderMessage = ({
|
||||||
fromDeleteModal: boolean;
|
fromDeleteModal: boolean;
|
||||||
closeModal?: () => void;
|
closeModal?: () => void;
|
||||||
}) => {
|
}) => {
|
||||||
const ChannelMessage = findByProps("ThreadStarterChatMessage").default;
|
const ChannelMessage = findComponentByCodeLazy("Message must not be a thread");
|
||||||
const { message, groupStart, cozyMessage } = findByProps("cozyMessage");
|
const { message, groupStart, cozyMessage } = findByProps("cozyMessage");
|
||||||
const User = findByCode("isClyde(){");
|
const User = findByCode("isClyde(){");
|
||||||
const Message = findByCode("isEdited(){");
|
const Message = findByCode("isEdited(){");
|
||||||
const Channel = findByProps("ChannelRecordBase").ChannelRecordBase;
|
const Channel = findByCodeLazy("computeLurkerPermissionsAllowList");
|
||||||
|
|
||||||
const [isHoldingDelete, setHoldingDelete] = React.useState(false);
|
const [isHoldingDelete, setHoldingDelete] = React.useState(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue