diff --git a/src/components/CycleTransferStatsClient.tsx b/src/components/CycleTransferStatsClient.tsx index 93ab996..aa4f66a 100644 --- a/src/components/CycleTransferStatsClient.tsx +++ b/src/components/CycleTransferStatsClient.tsx @@ -29,11 +29,17 @@ export const CycleTransferStatsClient: React.FC = className, }) => { const { t } = useTranslation() + const customBackgroundImage = + // @ts-expect-error ShowNetTransfer is a global variable + (window.CustomBackgroundImage as string) !== "" ? window.CustomBackgroundImage : undefined return (
{serverStats.map(({ serverId, serverName, transfer, nextUpdate }) => { diff --git a/src/components/GroupSwitch.tsx b/src/components/GroupSwitch.tsx index 2dd8e3a..1a10c40 100644 --- a/src/components/GroupSwitch.tsx +++ b/src/components/GroupSwitch.tsx @@ -10,9 +10,19 @@ export default function GroupSwitch({ currentTab: string setCurrentTab: (tab: string) => void }) { + const customBackgroundImage = + // @ts-expect-error ShowNetTransfer is a global variable + (window.CustomBackgroundImage as string) !== "" ? window.CustomBackgroundImage : undefined return (
-
+
{tabs.map((tab: string) => (
{ @@ -32,7 +37,9 @@ export function LanguageSwitcher() {