This commit is contained in:
2026-01-05 19:35:49 +01:00
parent b4b915416b
commit d9e6151ae0
92 changed files with 10964 additions and 7893 deletions

View File

@@ -0,0 +1,11 @@
'use client';
import { useParams } from 'next/navigation';
import { LeagueScheduleTemplate } from '@/templates/LeagueScheduleTemplate';
export default function LeagueScheduleInteractive() {
const params = useParams();
const leagueId = params.id as string;
return <LeagueScheduleTemplate leagueId={leagueId} />;
}

View File

@@ -0,0 +1,10 @@
import { LeagueScheduleTemplate } from '@/templates/LeagueScheduleTemplate';
interface LeagueScheduleStaticProps {
leagueId: string;
}
export default async function LeagueScheduleStatic({ leagueId }: LeagueScheduleStaticProps) {
// The LeagueScheduleTemplate doesn't need data fetching - it delegates to LeagueSchedule component
return <LeagueScheduleTemplate leagueId={leagueId} />;
}

View File

@@ -1,22 +1,3 @@
'use client';
import LeagueScheduleInteractive from './LeagueScheduleInteractive';
import LeagueSchedule from '@/components/leagues/LeagueSchedule';
import Card from '@/components/ui/Card';
import { useEffectiveDriverId } from '@/hooks/useEffectiveDriverId';
import { LeagueRoleUtility } from '@/lib/utilities/LeagueRoleUtility';
import { useServices } from '@/lib/services/ServiceProvider';
import { useParams } from 'next/navigation';
export default function LeagueSchedulePage() {
const params = useParams();
const leagueId = params.id as string;
return (
<div className="space-y-6">
<Card>
<h2 className="text-xl font-semibold text-white mb-4">Schedule</h2>
<LeagueSchedule leagueId={leagueId} />
</Card>
</div>
);
}
export default LeagueScheduleInteractive;