From d7f3dcac60baba7845986da092e8fa0a16fd1963 Mon Sep 17 00:00:00 2001 From: ponderingdemocritus Date: Fri, 13 Dec 2024 12:22:15 +1100 Subject: [PATCH] dead code --- .../src/ui/components/trading/MarketModal.tsx | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/client/src/ui/components/trading/MarketModal.tsx b/client/src/ui/components/trading/MarketModal.tsx index 60fb9bf03..3ca0449ef 100644 --- a/client/src/ui/components/trading/MarketModal.tsx +++ b/client/src/ui/components/trading/MarketModal.tsx @@ -112,37 +112,6 @@ export const MarketModal = () => { return battleManager.getUpdatedArmy(bankArmy, updatedBattle); }, [currentBlockTimestamp, battleManager, bankArmy]); - - // const [subscriptions, setSubscriptions] = useState<{ [entity: string]: boolean }>({}); - // const [isLoading, setIsLoading] = useState(false); - - // useEffect(() => { - // // if (!bank?.entityId || subscriptions[bank?.entityId?.toString()]) { - // // return; - // // } - // // setSubscriptions((prev) => ({ ...prev, [bank?.entityId?.toString()]: true })); - // const fetch = async () => { - // setIsLoading(true); - - // try { - // await addToSubscription( - // dojo.network.toriiClient, - // dojo.network.contractComponents as any, - // bank?.entityId?.toString() || "", - // { x: 0, y: 0 }, - // ); - // } catch (error) { - // console.error("Fetch failed", error); - // } finally { - // setIsLoading(false); - // } - - // console.log("market modal loading"); - // }; - - // fetch(); - // }, [structureEntityId, bank?.entityId]); - const tabs = useMemo( () => [ {