Fix Elo Page

This commit is contained in:
2024-03-09 14:21:26 +01:00
parent e08f75d849
commit 30808bfd5b
3 changed files with 9 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ import {createGetStaticPaths, t} from "astro-i18n";
import {getCollection, CollectionEntry} from "astro:content";
import PageLayout from "../../layouts/PageLayout.astro";
import EloTable from "../../components/EloTable.svelte";
import "@styles/table.css";
export const getStaticPaths = createGetStaticPaths(async () => {
const modes = await getCollection("modes", entry => entry.data.ranked);
@@ -24,7 +25,7 @@ interface Props {
const {mode} = Astro.props;
---
<PageLayout title={t("elo.title", {mode: t(`${mode.data.translationKey}.title`)})}>
<PageLayout title={t("ranking.heading", {mode: t(`${mode.data.translationKey}.title`)})}>
<h1 class="text-2xl mb-2">{t("ranking.heading", {mode: t(`${mode.data.translationKey}.title`)})}</h1>
<EloTable gamemode={mode.id} client:only="svelte"/>
</PageLayout>