founders card
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user