feat: better titlebar

This commit is contained in:
TrèsAbhi committed 2024-03-06 09:52:09 -06:00
1 parent 19e81ff78a
commit f605801555
10 files changed
+63 -90

No files matched your search

+4 -4
View File
@@ -1,8 +1,8 @@
import { SlashCommandBuilder } from 'discord.js';
import CommandWrapper from '../components/CommandWrapper';
import GenericStats from '../components/GenericStats';
import NoData, { NoDataType } from '../components/NoData';
import TitleBar from '../components/TitleBar';
import Wrapper from '../components/Wrapper';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import { getClanInfo } from '../core/blitz/getClanInfo';
import addClanChoices from '../core/discord/addClanChoices';
@@ -52,16 +52,16 @@ export const inactiveCommand: CommandRegistry = {
const hasInactiveMembers = inactive.length > 0;
return (
<Wrapper>
<CommandWrapper>
<TitleBar
name={clanInfo.name}
title={clanInfo.name}
image={`https://wotblitz-gc.gcdn.co/icons/clanEmblems1x/clan-icon-v2-${clanInfo.emblem_set_id}.png`}
description={`Inactive for ${threshold}+ Days • ${new Date().toDateString()}`}
/>
{!hasInactiveMembers && <NoData type={NoDataType.PlayersInPeriod} />}
{hasInactiveMembers && <GenericStats stats={inactive} />}
</Wrapper>
</CommandWrapper>
);
},