mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 12:36:57 +00:00
Rebase changes
This commit is contained in:
@@ -4,6 +4,7 @@ import { last } from "lodash";
|
||||
import { useTranslations } from "next-intl";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
import { ErrorBox } from "@/components/ErrorBox";
|
||||
import { TournamentResultsData } from "@/server/fetchTournamentResults";
|
||||
import { SearchedTournament } from "@/server/searchTournaments";
|
||||
import { TimeControl } from "@/types";
|
||||
@@ -107,7 +108,7 @@ export const TournamentResults = ({
|
||||
).length;
|
||||
|
||||
if (playerResults.estimated || playerResults.national)
|
||||
return <div className="my-8 text-center text-error">{t("needRating")}</div>;
|
||||
return <ErrorBox error={t("needRating")} />;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -217,20 +217,6 @@ export default function Elo() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{error instanceof Error && (
|
||||
<div className="mt-8 text-center text-error">
|
||||
{error.message.startsWith("ERR_")
|
||||
? t(error.message as TranslationKey)
|
||||
: t.rich("unknownError", {
|
||||
contact: (chunks) => (
|
||||
<Link className="underline" href="/contact-us">
|
||||
{chunks}
|
||||
</Link>
|
||||
),
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!isFetching && playerOptions.length > 0 && (
|
||||
<div>
|
||||
<div className="grid w-full grid-cols-1 gap-2 sm:grid-cols-2">
|
||||
|
||||
Reference in New Issue
Block a user