fix website build
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { User, Users2, Info, Check, HelpCircle, X } from 'lucide-react';
|
||||
import { useState, useRef, useEffect, useMemo } from 'react';
|
||||
import type * as React from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import Input from '@/components/ui/Input';
|
||||
import type { LeagueConfigFormModel } from '@/lib/types/LeagueConfigFormModel';
|
||||
@@ -15,7 +16,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) {
|
||||
@@ -225,8 +226,8 @@ export function LeagueStructureSection({
|
||||
// Flyout state
|
||||
const [showSoloFlyout, setShowSoloFlyout] = useState(false);
|
||||
const [showTeamsFlyout, setShowTeamsFlyout] = useState(false);
|
||||
const soloInfoRef = useRef<HTMLButtonElement>(null);
|
||||
const teamsInfoRef = useRef<HTMLButtonElement>(null);
|
||||
const soloInfoRef = useRef<HTMLButtonElement>(null!);
|
||||
const teamsInfoRef = useRef<HTMLButtonElement>(null!);
|
||||
|
||||
const isSolo = structure.mode === 'solo';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user