website cleanup
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import React, { useState, useRef, useEffect } from 'react';
|
||||
import { Trophy, Award, Check, Zap, Settings, Globe, Medal, Plus, Minus, RotateCcw, HelpCircle, X } from 'lucide-react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import type { LeagueScoringPresetDTO } from '@/lib/types/generated/LeagueScoringPresetDTO';
|
||||
import type { LeagueScoringPresetViewModel } from '@/lib/view-models/LeagueScoringPresetViewModel';
|
||||
import type { LeagueConfigFormModel } from '@/lib/types/LeagueConfigFormModel';
|
||||
|
||||
// ============================================================================
|
||||
@@ -281,7 +281,7 @@ function DropRulesMockup() {
|
||||
|
||||
interface LeagueScoringSectionProps {
|
||||
form: LeagueConfigFormModel;
|
||||
presets: LeagueScoringPresetDTO[];
|
||||
presets: LeagueScoringPresetViewModel[];
|
||||
onChange?: (form: LeagueConfigFormModel) => void;
|
||||
readOnly?: boolean;
|
||||
/**
|
||||
@@ -296,7 +296,7 @@ interface LeagueScoringSectionProps {
|
||||
|
||||
interface ScoringPatternSectionProps {
|
||||
scoring: LeagueConfigFormModel['scoring'];
|
||||
presets: LeagueScoringPresetDTO[];
|
||||
presets: LeagueScoringPresetViewModel[];
|
||||
readOnly?: boolean;
|
||||
patternError?: string;
|
||||
onChangePatternId?: (patternId: string) => void;
|
||||
@@ -513,7 +513,7 @@ export function ScoringPatternSection({
|
||||
onUpdateCustomPoints?.(DEFAULT_CUSTOM_POINTS);
|
||||
};
|
||||
|
||||
const getPresetEmoji = (preset: LeagueScoringPresetDTO) => {
|
||||
const getPresetEmoji = (preset: LeagueScoringPresetViewModel) => {
|
||||
const name = preset.name.toLowerCase();
|
||||
if (name.includes('sprint') || name.includes('double')) return '⚡';
|
||||
if (name.includes('endurance') || name.includes('long')) return '🏆';
|
||||
@@ -521,7 +521,7 @@ export function ScoringPatternSection({
|
||||
return '🏁';
|
||||
};
|
||||
|
||||
const getPresetDescription = (preset: LeagueScoringPresetDTO) => {
|
||||
const getPresetDescription = (preset: LeagueScoringPresetViewModel) => {
|
||||
const name = preset.name.toLowerCase();
|
||||
if (name.includes('sprint')) return 'Sprint + Feature race';
|
||||
if (name.includes('endurance')) return 'Long-form endurance';
|
||||
|
||||
Reference in New Issue
Block a user