founders card

This commit is contained in:
2026-09-14 13:23:14 +00:00
parent c5084170b8
commit 64759ce17d
57 changed files with 5013 additions and 188 deletions
+5 -8
View File
@@ -7,6 +7,7 @@ import {
updateAdminAccount,
} from "@/app/actions/account-actions";
import {
emptyPagePermissions,
PAGE_KEYS,
type PageKey,
type PagePermissions,
@@ -20,6 +21,7 @@ const PAGE_LABELS: Record<PageKey, string> = {
matchmaker: "Matchmaker",
ledger: "Ledger",
logs: "System logs",
"founders-card": "Founders card",
};
type Props = {
@@ -254,14 +256,9 @@ function AccountEditForm({
}
function AddAccountForm() {
const [permissions, setPermissions] = useState<PagePermissions>({
players: { read: false, write: false },
matches: { read: false, write: false },
analysis: { read: false, write: false },
matchmaker: { read: false, write: false },
ledger: { read: false, write: false },
logs: { read: false, write: false },
});
const [permissions, setPermissions] = useState<PagePermissions>(() =>
emptyPagePermissions(),
);
return (
<form