From 5c35f1df0ffcefeb76e6a0ad978f2e2a314e1389 Mon Sep 17 00:00:00 2001 From: programminglaboratorys Date: Wed, 18 Sep 2024 21:26:24 +0300 Subject: [PATCH] fixed status icon and renderRememberButton --- src/plugins/statusPresets/index.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/plugins/statusPresets/index.tsx b/src/plugins/statusPresets/index.tsx index 3d3484c9c..66af4e4c2 100644 --- a/src/plugins/statusPresets/index.tsx +++ b/src/plugins/statusPresets/index.tsx @@ -26,10 +26,6 @@ import { Button, Menu, Text, Toasts } from "@webpack/common"; const Components = findByPropsLazy("Status"); const StatusStyles = findByPropsLazy("statusItem"); -const statusCrossSponding = { - "online": "rgb(35, 165, 90)" -}; - interface Emoji { animated: boolean; id: bigint | null; @@ -71,9 +67,8 @@ function MakeContextCallback(): NavContextMenuPatchCallback { label={status.status} action={() => console.log("pog")} render={() => (
{status.status}
{status.text}
@@ -102,8 +97,7 @@ export default definePlugin({ contextMenus: { "set-status-submenu": MakeContextCallback() }, - renderRememberButton({ statue }: { statue: DiscordStatus; }) { - if (!statue) return; + renderRememberButton(statue: DiscordStatus) { return