fix website build

This commit is contained in:
2025-12-25 12:54:08 +01:00
parent ac083363bc
commit 722a185dd9
26 changed files with 1712 additions and 1419 deletions

View File

@@ -2,6 +2,7 @@
import { Trophy, Users, Check, HelpCircle, X } from 'lucide-react';
import { useState, useRef, useEffect } from 'react';
import type * as React from 'react';
import { createPortal } from 'react-dom';
import type { LeagueConfigFormModel } from '@/lib/types/LeagueConfigFormModel';
@@ -17,7 +18,7 @@ interface InfoFlyoutProps {
onClose: () => void;
title: string;
children: React.ReactNode;
anchorRef: React.RefObject<HTMLElement | null>;
anchorRef: React.RefObject<HTMLElement>;
}
function InfoFlyout({ isOpen, onClose, title, children, anchorRef }: InfoFlyoutProps) {
@@ -128,8 +129,8 @@ export function LeagueVisibilitySection({
// Flyout state
const [showRankedFlyout, setShowRankedFlyout] = useState(false);
const [showUnrankedFlyout, setShowUnrankedFlyout] = useState(false);
const rankedInfoRef = useRef<HTMLButtonElement>(null);
const unrankedInfoRef = useRef<HTMLButtonElement>(null);
const rankedInfoRef = useRef<HTMLButtonElement>(null!);
const unrankedInfoRef = useRef<HTMLButtonElement>(null!);
// Normalize visibility to new terminology
const isRanked = basics.visibility === 'public';