fix: dead code

This commit is contained in:
TrèsAbhi committed 2025-09-27 18:28:35 -05:00
1 parent 25cee8a36b
commit 674abc4923
9 files changed
+169 -3525

No files matched your search

@@ -1,5 +1,5 @@
---
import { Cross1Icon, Cross2Icon, DownloadIcon } from "@radix-ui/react-icons";
import { Cross2Icon, DownloadIcon } from "@radix-ui/react-icons";
import {
Badge,
Box,
@@ -1,8 +1,8 @@
import { getAccountInfo, idToRegion } from '@blitzkit/core';
import { Text } from '@radix-ui/themes';
import { useMemo } from 'react';
import usePromise from 'react-promise-suspense';
import { App } from '../stores/app';
import { getAccountInfo, idToRegion } from "@blitzkit/core";
import { Text } from "@radix-ui/themes";
import { useMemo } from "react";
import usePromise from "react-promise-suspense";
import { App } from "../stores/app";
export function WargamingAccountName() {
const wargaming = App.use((state) => state.logins.wargaming);
@@ -13,7 +13,7 @@ export function WargamingAccountName() {
idToRegion(wargaming.id),
wargaming.id,
[],
{ access_token: wargaming.token },
{ access_token: wargaming.token }
);
return data?.nickname as string | undefined;
@@ -1,10 +0,0 @@
import { type StoreKeys } from '@nanostores/react';
import type { Store } from 'nanostores';
import { useStoreKey } from './useStoreKey';
export function useStoreBoolean<Type>(
store: Store<Type>,
key: StoreKeys<Store<Type>>,
) {
return Boolean(useStoreKey(store, key));
}
-10
View File
@@ -1,10 +0,0 @@
import { useStore, type StoreKeys } from '@nanostores/react';
import type { Store } from 'nanostores';
export function useStoreKey<Type, Key extends StoreKeys<Store<Type>>>(
store: Store<Type>,
key: Key,
) {
const state = useStore(store, { keys: [key] });
return state[key];
}