Initial commit
This commit is contained in:
26
resources/js/pages/ContestsIndexPage.tsx
Normal file
26
resources/js/pages/ContestsIndexPage.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import NewsList from "@/components/NewsList";
|
||||
import RoundsTable from "@/components/RoundsTable";
|
||||
import { useUserStore } from "@/stores/userStore";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
export default function ContestsIndexPage() {
|
||||
const user = useUserStore((s) => s.user);
|
||||
const { t } = useTranslation("common");
|
||||
const showTests = !!user;
|
||||
|
||||
return (
|
||||
<>
|
||||
<NewsList initialLimit={2}/>
|
||||
|
||||
<RoundsTable
|
||||
title={t("open_rounds_title") ?? "Otevřené a zatím nezpracované závody"}
|
||||
onlyActive={true}
|
||||
showActiveColumn={false}
|
||||
enableRowNavigation
|
||||
showTests={showTests}
|
||||
hideInactiveForGuests={!user}
|
||||
isGuest={!user}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user