feat: removed region text in title bar

This commit is contained in:
TresAbhi committed 2023-08-06 18:41:59 +00:00
1 parent d5de715032
commit 399aa4c03c
7 files changed
+8 -28

No files matched your search

+1 -4
View File
@@ -4,7 +4,6 @@ import NoData, { NoDataType } from '../components/NoData';
import PoweredBy, { PoweredByType } from '../components/PoweredBy';
import TitleBar from '../components/TitleBar';
import Wrapper from '../components/Wrapper';
import { REGION_NAMES } from '../constants/regions';
import getBlitzClan from '../core/blitz/getBlitzClan';
import getWargamingResponse from '../core/blitz/getWargamingResponse';
import addClanChoices from '../core/discord/addClanChoices';
@@ -71,9 +70,7 @@ export const inactiveCommand: CommandRegistry = {
name={clanData.name}
nameDiscriminator="(Inactivity)"
image={`https://wotblitz-gc.gcdn.co/icons/clanEmblems1x/clan-icon-v2-${clanData.emblem_set_id}.png`}
description={`${threshold}+ Days • ${new Date().toDateString()} • ${
REGION_NAMES[server]
}`}
description={`${threshold}+ Days • ${new Date().toDateString()}`}
/>
{!hasInactiveMembers && <NoData type={NoDataType.PlayersInPeriod} />}
+1 -4
View File
@@ -4,7 +4,6 @@ import PoweredBy, { PoweredByType } from '../components/PoweredBy';
import * as Tanks from '../components/Tanks';
import TitleBar from '../components/TitleBar';
import Wrapper from '../components/Wrapper';
import { REGION_NAMES } from '../constants/regions';
import getTankStats from '../core/blitz/getTankStats';
import getTreeType from '../core/blitz/getTreeType';
import getWargamingResponse from '../core/blitz/getWargamingResponse';
@@ -104,9 +103,7 @@ export const ownedTanksCommand: CommandRegistry = {
? `https://wotblitz-gc.gcdn.co/icons/clanEmblems1x/clan-icon-v2-${clanData[id]?.clan?.emblem_set_id}.png`
: undefined
}
description={`Owned tanks • ${new Date().toDateString()} • ${
REGION_NAMES[server]
}`}
description={`Owned tanks • ${new Date().toDateString()}`}
/>
{tanks.length === 0 && <NoData type={NoDataType.TanksFound} />}
+2 -4
View File
@@ -4,7 +4,7 @@ import { octokit } from '../bot';
import * as Leaderboard from '../components/Leaderboard';
import TitleBar from '../components/TitleBar';
import Wrapper from '../components/Wrapper';
import { REGION_NAMES, Region } from '../constants/regions';
import { Region } from '../constants/regions';
import regionToRegionSubdomain from '../core/blitz/regionToRegionSubdomain';
import addRegionChoices from '../core/discord/addRegionChoices';
import { CommandRegistry } from '../events/interactionCreate';
@@ -241,9 +241,7 @@ export const ratingsCommand: CommandRegistry = {
? leagueInfo.big_icon
: `https:${leagueInfo.big_icon}`
}
description={`Top ${limit} players • ${new Date().toDateString()} • ${
REGION_NAMES[region]
}`}
description={`Top ${limit} players • ${new Date().toDateString()}`}
/>
<Leaderboard.Root>