website refactor

This commit is contained in:
2026-01-15 18:52:03 +01:00
parent f035cfe7ce
commit 5ef149b782
39 changed files with 564 additions and 518 deletions

View File

@@ -1,5 +1,5 @@
import { PageWrapper } from '@/components/shared/state/PageWrapper';
import { SponsorLeaguesTemplate } from '@/templates/SponsorLeaguesTemplate';
import SponsorLeaguesPageClient from './SponsorLeaguesPageClient';
import { SponsorsApiClient } from '@/lib/api/sponsors/SponsorsApiClient';
import { EnhancedErrorReporter } from '@/lib/infrastructure/EnhancedErrorReporter';
import { ConsoleLogger } from '@/lib/infrastructure/logging/ConsoleLogger';
@@ -23,7 +23,7 @@ export default async function Page() {
// Process data - move business logic to template
if (!leaguesData) {
return <PageWrapper data={undefined} Template={SponsorLeaguesTemplate} />;
return <PageWrapper data={undefined} Template={SponsorLeaguesPageClient} />;
}
// Calculate summary stats (business logic moved from view model)
@@ -42,5 +42,5 @@ export default async function Page() {
stats,
};
return <PageWrapper data={processedData} Template={SponsorLeaguesTemplate} />;
return <PageWrapper data={processedData} Template={SponsorLeaguesPageClient} />;
}