Add Dreamy new XP badge credits
Some checks failed
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled

This commit is contained in:
Kalle 2025-03-14 18:56:22 +02:00
parent ac397f5288
commit 3d5de9e44a

View File

@ -42,6 +42,22 @@ export default function BadgeDetailsPage() {
const context: BadgeDetailsContext = { badgeName: badge.displayName };
const badgeMaker = () => {
if (badge.author?.username) return badge.author?.username;
if (
[
"XP3500 (Splatoon 3)",
"XP4000 (Splatoon 3)",
"XP4500 (Splatoon 3)",
"XP5000 (Splatoon 3)",
].includes(badge.displayName)
) {
return "Dreamy";
}
return "borzoic";
};
return (
<div className="stack md items-center">
<Outlet context={context} />
@ -56,7 +72,7 @@ export default function BadgeDetailsPage() {
})}{" "}
(
{t("madeBy", {
user: badge.author?.username ?? "borzoic",
user: badgeMaker(),
})}
)
</div>