website refactor

This commit is contained in:
2026-01-14 16:28:39 +01:00
parent 85e09b6f4d
commit 4b7d82ab43
119 changed files with 2403 additions and 1615 deletions

View File

@@ -1,14 +1,14 @@
import { notFound, redirect } from 'next/navigation';
import { LeaderboardsPageQuery } from '@/lib/page-queries/page-queries/LeaderboardsPageQuery';
import { LeaderboardsPageWrapper } from './LeaderboardsPageWrapper';
import { LeaderboardsTemplate } from '@/templates/LeaderboardsTemplate';
import { routes } from '@/lib/routing/RouteConfig';
export default async function LeaderboardsPage() {
const result = await LeaderboardsPageQuery.execute();
if (result.isErr()) {
const error = result.getError();
// Handle different error types
if (error === 'notFound') {
notFound();
@@ -20,8 +20,8 @@ export default async function LeaderboardsPage() {
notFound();
}
}
// Success
const viewData = result.unwrap();
return <LeaderboardsPageWrapper data={viewData} />;
return <LeaderboardsTemplate viewData={viewData} />;
}