website cleanup
This commit is contained in:
@@ -4,8 +4,7 @@ import { User, Users2, Info, Check, HelpCircle, X } from 'lucide-react';
|
||||
import { useState, useRef, useEffect, useMemo } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import Input from '@/components/ui/Input';
|
||||
import type { LeagueConfigFormModel } from '@core/racing/application';
|
||||
import { GameConstraints } from '@core/racing/domain/value-objects/GameConstraints';
|
||||
import type { LeagueConfigFormModel } from '@/lib/types/LeagueConfigFormModel';
|
||||
|
||||
// ============================================================================
|
||||
// INFO FLYOUT COMPONENT
|
||||
@@ -233,8 +232,16 @@ export function LeagueStructureSection({
|
||||
|
||||
// Get game-specific constraints
|
||||
const gameConstraints = useMemo(
|
||||
() => GameConstraints.forGame(form.basics.gameId),
|
||||
[form.basics.gameId]
|
||||
() => ({
|
||||
minDrivers: 1,
|
||||
maxDrivers: 100,
|
||||
defaultMaxDrivers: 24,
|
||||
minTeams: 1,
|
||||
maxTeams: 50,
|
||||
minDriversPerTeam: 1,
|
||||
maxDriversPerTeam: 10,
|
||||
}),
|
||||
[form.basics?.gameId]
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user