From bde4727d9f3d8b9554be3edafc2eedac3ef8522e Mon Sep 17 00:00:00 2001 From: Regalijan Date: Thu, 23 Jan 2025 15:10:23 -0500 Subject: [PATCH] Add active inactivities button to tools popout --- app/routes/mod-queue.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/routes/mod-queue.tsx b/app/routes/mod-queue.tsx index 86c6e5b..1c5698f 100644 --- a/app/routes/mod-queue.tsx +++ b/app/routes/mod-queue.tsx @@ -53,6 +53,7 @@ export async function loader({ context }: { context: RequestContext }) { }; const newItemPermissions = { + active_inactivities: [1 << 0, 1 << 2, 1 << 3, 1 << 9, 1 << 10], appeal_bans: [1 << 0, 1 << 11], game_ban: [1 << 5], inactivity: [1 << 2, 1 << 3, 1 << 9, 1 << 10], @@ -61,6 +62,7 @@ export async function loader({ context }: { context: RequestContext }) { }; const newItemNames: { [k: string]: string } = { + active_inactivities: "Active Inactivity Notices", appeal_bans: "Appeal Bans", game_ban: "New Game Ban", gme: "Game Mod Management", @@ -328,6 +330,11 @@ export default function () { [k: string]: any; }; } = { + active_inactivities: { + isOpen: false, + onClose: () => {}, + onOpen: () => location.assign("/inactivities"), + }, appeal_bans: useDisclosure(), game_ban: useDisclosure(), gme: useDisclosure(),