mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Add Dreamy new XP badge credits
This commit is contained in:
parent
ac397f5288
commit
3d5de9e44a
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user