Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bob0005 committed Jan 12, 2025
1 parent d592106 commit 93f8f3d
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 19 deletions.
2 changes: 2 additions & 0 deletions client/apps/game/src/hooks/context/DojoContext.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { ReactComponent as CartridgeSmall } from "@/assets/icons/cartridge-small.svg";
// import CartridgeSmall from '@/assets/icons/cartridge-small.svg?react';
// import CartridgeSmall from '../../../../common/public/assets/icons/cartridge-small.svg?react';
import { SetupResult } from "@/dojo/setup";
import { SetupNetworkResult } from "@/dojo/setup-network";
import { useAccountStore } from "@/hooks/context/account-store";
Expand Down
8 changes: 4 additions & 4 deletions client/apps/game/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import { env } from "../env";
import App from "./App";
import { setup } from "./dojo/setup";
import { DojoProvider } from "./hooks/context/DojoContext";
import { StarknetProvider } from "./hooks/context/starknet-provider";
import useUIStore from "./hooks/store/useUIStore";
import { StarknetProvider } from "./hooks/context/StarknetProvider";
import useUIStore from "./hooks/store/use-ui-store";
import "./index.css";
import GameRenderer from "./three/GameRenderer";
import { PWAUpdatePopup } from "./ui/components/pwa-update-popup";
import GameRenderer from "./three/game-renderer";
import { PWAUpdatePopup } from "./ui/components/PWAUpdatePopup";
import { LoadingScreen } from "./ui/modules/LoadingScreen";
import { getRandomBackgroundImage } from "./ui/utils/utils";

Expand Down
2 changes: 1 addition & 1 deletion client/apps/game/src/three/managers/minimap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { type ArmyManager } from "@/three/managers/army-manager";
import { type BattleManager } from "@/three/managers/battle-manager";
import { type Biome, BIOME_COLORS } from "@/three/managers/biome";
import { type StructureManager } from "@/three/managers/structure-manager";
import type WorldmapScene from "@/three/scenes/Worldmap";
import type WorldmapScene from "@/three/scenes/worldmap";
import { FELT_CENTER } from "@/ui/config";
import { getHexForWorldPosition } from "@/ui/utils/utils";
import { StructureType } from "@bibliothecadao/eternum";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { configManager } from "@/dojo/setup";
import { useDojo } from "@/hooks/context/DojoContext";
import { useRealm } from "@/hooks/helpers/useRealm";
import { useTravel } from "@/hooks/helpers/useTravel";
import { soundSelector, useUiSounds } from "@/hooks/useUISound";
import { useRealm } from "@/hooks/helpers/use-realm";
import { useTravel } from "@/hooks/helpers/use-travel";
import { soundSelector, useUiSounds } from "@/hooks/use-ui-sound";
import Button from "@/ui/elements/Button";
import { Checkbox } from "@/ui/elements/Checkbox";
import { Headline } from "@/ui/elements/Headline";
Expand Down
4 changes: 2 additions & 2 deletions client/apps/game/src/ui/components/trading/TransferView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useDojo } from "@/hooks/context/DojoContext";
import { PlayerStructure, RealmWithPosition, useEntities, useEntitiesUtils } from "@/hooks/helpers/useEntities";
import { useGuilds } from "@/hooks/helpers/useGuilds";
import { PlayerStructure, RealmWithPosition, useEntities, useEntitiesUtils } from "@/hooks/helpers/use-entities";
import { useGuilds } from "@/hooks/helpers/use-guilds";
import { getRealmNameById } from "@/ui/utils/realms";
import { ContractAddress, StructureType } from "@bibliothecadao/eternum";
import { useEntityQuery } from "@dojoengine/react";
Expand Down
2 changes: 1 addition & 1 deletion client/apps/game/src/ui/elements/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { soundSelector, useUiSounds } from "../../hooks/useUISound";
import { soundSelector, useUiSounds } from "@/hooks/use-ui-sound";

type ButtonProps = {
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
Expand Down
2 changes: 1 addition & 1 deletion client/apps/game/src/ui/elements/CircleButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import useUIStore from "@/hooks/store/use-ui-store";
import { soundSelector, useUiSounds } from "@/hooks/useUISound";
import { soundSelector, useUiSounds } from "@/hooks/use-ui-sound";
import clsx from "clsx";

type CircleButtonProps = {
Expand Down
2 changes: 1 addition & 1 deletion client/apps/game/src/ui/elements/HintModalButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useModalStore } from "@/hooks/store/useModalStore";
import { useModalStore } from "@/hooks/store/use-modal-store";
import { HintModal } from "../components/hints/HintModal";
import { BuildingThumbs } from "../config";
import CircleButton from "./CircleButton";
Expand Down
2 changes: 1 addition & 1 deletion client/apps/game/src/ui/elements/NumberInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ReactComponent as ArrowLeft } from "@/assets/icons/common/arrow-left.sv
import { ReactComponent as ArrowRight } from "@/assets/icons/common/arrow-right.svg";
import clsx from "clsx";
import { useEffect, useState } from "react";
import { soundSelector, useUiSounds } from "../../hooks/useUISound";
import { soundSelector, useUiSounds } from "@/hooks/use-ui-sound";

type NumberInputProps = {
value: number;
Expand Down
2 changes: 1 addition & 1 deletion client/apps/game/src/ui/elements/tab/tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { soundSelector, useUiSounds } from "@/hooks/use-ui-sound";
import { Tab as HeadlessTab } from "@headlessui/react";
import clsx from "clsx";
import type { ReactNode } from "react";
import { soundSelector, useUiSounds } from "../../../hooks/useUISound";
import { TabList } from "./TabList";
import { TabPanel } from "./TabPanel";
import { TabPanels } from "./TabPanels";
Expand Down
2 changes: 1 addition & 1 deletion client/apps/game/src/ui/modules/LoadingScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useSeasonStart } from "@/hooks/useSeasonStart";
import { useSeasonStart } from "@/hooks/use-season-start";
import { useEffect, useState } from "react";
import "../../index.css";
import { OnboardingContainer, StepContainer } from "../layouts/Onboarding";
Expand Down
2 changes: 1 addition & 1 deletion client/apps/game/src/ui/modules/entity-details/Battles.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BattleInfo } from "@/hooks/helpers/battles/useBattles";
import { BattleInfo } from "@/hooks/helpers/battles/use-battles";
import { BattleListItem } from "@/ui/components/battles/BattleListItem";
import { ArmyInfo } from "@bibliothecadao/eternum";

Expand Down
4 changes: 2 additions & 2 deletions client/apps/game/src/ui/modules/navigation/QuestMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useDojo } from "@/hooks/context/DojoContext";
import { Prize, QuestStatus, useQuests, useUnclaimedQuestsCount } from "@/hooks/helpers/useQuests";
import { useRealm } from "@/hooks/helpers/useRealm";
import { Prize, QuestStatus, useQuests, useUnclaimedQuestsCount } from "@/hooks/helpers/use-quests";
import { useRealm } from "@/hooks/helpers/use-realm";
import useUIStore from "@/hooks/store/use-ui-store";
import { useStartingTutorial } from "@/hooks/use-starting-tutorial";
import { questSteps, useTutorial } from "@/hooks/use-tutorial";
Expand Down

0 comments on commit 93f8f3d

Please sign in to comment.