add event icons for zones cup+ and plus draft cup

This commit is contained in:
Kalle (Sendou)
2021-04-12 22:22:57 +03:00
parent 66c88df3d8
commit 0cb05580a3
2 changed files with 4 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ const nameToImage = [
{ code: "tg", name: "testing grounds" },
{ code: "ut", name: "unnamed tournament" },
{ code: "kotc", name: "king of the castle" },
{ code: "zones", name: "area cup +" },
] as const;
/**
@@ -103,6 +104,9 @@ const nameToImage = [
*/
export const eventImage = (eventName: string) => {
const eventNameLower = eventName.toLowerCase();
if (eventNameLower.startsWith("plus server")) {
return `/layout/plus.png`;
}
for (const { name, code } of nameToImage) {
if (eventNameLower.startsWith(name)) {
return `/events/${code}.png`;

BIN
public/events/zones.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB