From d9a61fd436f7a05d0456fbf13b317dfb8cf7ad5c Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 29 Jan 2025 08:14:41 -0500 Subject: [PATCH] Some Fixes --- .../channelTabs/components/ChannelTab.tsx | 5 +-- src/equicordplugins/friendshipRanks/index.tsx | 14 ++++---- .../components/HiddenServersButton.tsx | 4 +-- src/equicordplugins/loginWithQR/ui/index.ts | 7 ---- src/equicordplugins/pinIcon/index.tsx | 5 +-- src/equicordplugins/sidebarChat/index.tsx | 36 +++++++++++++++++-- .../soundBoardLogger/components/Icons.tsx | 4 +-- src/equicordplugins/statusPresets/index.tsx | 22 +++++++++--- src/plugins/showHiddenChannels/index.tsx | 8 +++-- 9 files changed, 73 insertions(+), 32 deletions(-) diff --git a/src/equicordplugins/channelTabs/components/ChannelTab.tsx b/src/equicordplugins/channelTabs/components/ChannelTab.tsx index 3bdd20ce..d1a337cf 100644 --- a/src/equicordplugins/channelTabs/components/ChannelTab.tsx +++ b/src/equicordplugins/channelTabs/components/ChannelTab.tsx @@ -8,12 +8,13 @@ import { classNameFactory } from "@api/Styles"; import { getIntlMessage, getUniqueUsername } from "@utils/discord"; import { classes } from "@utils/misc"; import { findByPropsLazy, findComponentByCodeLazy } from "@webpack"; -import { Avatar, ChannelStore, ContextMenuApi, Dots, GuildStore, PresenceStore, ReadStateStore, Text, TypingStore, useDrag, useDrop, useRef, UserStore, useStateFromStores } from "@webpack/common"; +import { Avatar, ChannelStore, ContextMenuApi, GuildStore, PresenceStore, ReadStateStore, Text, TypingStore, useDrag, useDrop, useRef, UserStore, useStateFromStores } from "@webpack/common"; import { Channel, Guild, User } from "discord-types/general"; import { ChannelTabsProps, CircleQuestionIcon, closeTab, isTabSelected, moveDraggedTabs, moveToTab, openedTabs, settings } from "../util"; import { TabContextMenu } from "./ContextMenus"; +const ThreeDots = findComponentByCodeLazy(".dots,", "dotRadius:"); const { getBadgeWidthForValue } = findByPropsLazy("getBadgeWidthForValue"); const dotStyles = findByPropsLazy("numberBadge", "textBadge"); @@ -52,7 +53,7 @@ const ChannelIcon = ({ channel }: { channel: Channel; }) => function TypingIndicator({ isTyping }: { isTyping: boolean; }) { return isTyping - ? + ? : null; } diff --git a/src/equicordplugins/friendshipRanks/index.tsx b/src/equicordplugins/friendshipRanks/index.tsx index 24479f7e..543167d2 100644 --- a/src/equicordplugins/friendshipRanks/index.tsx +++ b/src/equicordplugins/friendshipRanks/index.tsx @@ -8,7 +8,7 @@ import { BadgeUserArgs, ProfileBadge } from "@api/Badges"; import ErrorBoundary from "@components/ErrorBoundary"; import { Devs } from "@utils/constants"; import { Margins } from "@utils/margins"; -import { Modals, ModalSize, openModal } from "@utils/modal"; +import { ModalContent, ModalHeader, ModalRoot, ModalSize, openModal } from "@utils/modal"; import definePlugin from "@utils/types"; import { Button, Flex, Forms, RelationshipStore } from "@webpack/common"; @@ -81,8 +81,8 @@ const ranks: rankInfo[] = function openRankModal(rank: rankInfo) { openModal(props => ( - - + + - - + +
{rank.description}
-
-
+ +
)); } diff --git a/src/equicordplugins/hideServers/components/HiddenServersButton.tsx b/src/equicordplugins/hideServers/components/HiddenServersButton.tsx index 9cad8482..d9c25408 100644 --- a/src/equicordplugins/hideServers/components/HiddenServersButton.tsx +++ b/src/equicordplugins/hideServers/components/HiddenServersButton.tsx @@ -7,7 +7,7 @@ import "./style.css"; import { classNameFactory } from "@api/Styles"; -import { Button, ButtonLooks, GuildStore, useStateFromStores } from "@webpack/common"; +import { Button, GuildStore, useStateFromStores } from "@webpack/common"; import { HiddenServersStore } from "../HiddenServersStore"; import { openHiddenServersModal } from "./HiddenServersMenu"; @@ -23,7 +23,7 @@ function HiddenServersButton() { {actuallyHidden > 0 ? (