wip
This commit is contained in:
@@ -61,7 +61,18 @@ export function LeagueStewardingSection({
|
||||
onChange,
|
||||
readOnly = false,
|
||||
}: LeagueStewardingSectionProps) {
|
||||
const stewarding = form.stewarding;
|
||||
// Provide default stewarding settings if not present
|
||||
const stewarding = form.stewarding ?? {
|
||||
decisionMode: 'admin_only' as const,
|
||||
requiredVotes: 2,
|
||||
requireDefense: false,
|
||||
defenseTimeLimit: 48,
|
||||
voteTimeLimit: 72,
|
||||
protestDeadlineHours: 48,
|
||||
stewardingClosesHours: 168,
|
||||
notifyAccusedOnProtest: true,
|
||||
notifyOnVoteRequired: true,
|
||||
};
|
||||
|
||||
const updateStewarding = (updates: Partial<LeagueStewardingFormDTO>) => {
|
||||
onChange({
|
||||
|
||||
Reference in New Issue
Block a user