Register appeal bans modal in mod queue

This commit is contained in:
2023-10-30 17:04:20 -04:00
parent 68721845b0
commit 0574a7b53b

View File

@ -25,12 +25,13 @@ import {
useRef,
useState,
} from "react";
import { useLoaderData } from "@remix-run/react";
import AppealBans from "../../components/AppealBans.js";
import AppealCard from "../../components/AppealCard.js";
import GameAppealCard from "../../components/GameAppealCard.js";
import NewGameBan from "../../components/NewGameBan.js";
import NewInfractionModal from "../../components/NewInfractionModal.js";
import ReportCard from "../../components/ReportCard.js";
import { useLoaderData } from "@remix-run/react";
import NewInactivityNotice from "../../components/NewInactivityNotice.js";
import InactivityNoticeCard from "../../components/InactivityNoticeCard.js";
@ -50,6 +51,7 @@ export async function loader({ context }: { context: RequestContext }) {
};
const newItemPermissions = {
appeal_bans: [1 << 0, 1 << 11],
game_ban: [1 << 5],
inactivity: [1 << 2, 1 << 9, 1 << 10],
infraction: [1 << 0, 1 << 2, 1 << 6, 1 << 7],
@ -57,6 +59,7 @@ export async function loader({ context }: { context: RequestContext }) {
};
const newItemNames: { [k: string]: string } = {
appeal_bans: "Appeal Bans",
game_ban: "New Game Ban",
inactivity: "New Inactivity Notice",
infraction: "New Infraction",
@ -298,6 +301,7 @@ export default function () {
[k: string]: any;
};
} = {
appeal_bans: useDisclosure(),
game_ban: useDisclosure(),
inactivity: useDisclosure(),
infraction: useDisclosure(),
@ -345,6 +349,10 @@ export default function () {
return (
<Container maxW="container.lg">
<AppealBans
isOpen={itemModals.appeal_bans.isOpen}
onClose={itemModals.appeal_bans.onClose}
/>
<NewGameBan
isOpen={itemModals.game_ban.isOpen}
onClose={itemModals.game_ban.onClose}