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