Skip to content

Commit

Permalink
- fix game contract address}
Browse files Browse the repository at this point in the history
- remove maintanence
  • Loading branch information
starknetdev committed Oct 6, 2023
1 parent 5a29d5b commit fbd4783
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 87 deletions.
2 changes: 1 addition & 1 deletion ui/src/app/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function getContracts() {
case "goerli":
return {
eth: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",
game: "0x0229a6f42ae0bc258acf91b6e6d7f50e77608dbfb5a42e1c362f2041f9333fb5",
game: "0x01263ecbc05e28d1e99f531894838db10b90cfcdd39d020642da1747a733a37a",
lords:
"0x05e367ac160e5f90c5775089b582dfc987dd148a5a2f977c49def2a6644f724b",
};
Expand Down
172 changes: 86 additions & 86 deletions ui/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,91 +329,91 @@ export default function Home() {
pendingMessage.includes("Spawning Adventurer"));

return (
<Maintenance />
// <main
// className={`min-h-screen container mx-auto flex flex-col sm:pt-8 sm:p-8 lg:p-10 2xl:p-20 `}
// >
// {introComplete ? (
// <>
// <div className="flex flex-col w-full">
// <NetworkSwitchError isWrongNetwork={isWrongNetwork} />
// {!spawnLoader && (
// <div className="sm:hidden">
// <TxActivity />
// </div>
// )}
// <Header multicall={multicall} />
// </div>
// <div className="w-full h-1 sm:h-6 sm:my-2 bg-terminal-green text-terminal-black px-4">
// {!spawnLoader && (
// <div className="hidden sm:block">
// <TxActivity />
// </div>
// )}
// </div>
// <NotificationDisplay />

// {deathDialog && <DeathDialog />}

// {status == "connected" && arcadeDialog && <ArcadeDialog />}
// {status == "connected" && topUpDialog && <TopUpDialog />}

// {introComplete ? (
// <div className="flex flex-col w-full">
// <>
// <div className="sm:hidden flex sm:justify-normal sm:pb-2">
// <ScreenMenu
// buttonsData={mobileMenuItems}
// onButtonClick={(value) => {
// setScreen(value);
// }}
// disabled={mobileMenuDisabled}
// />
// </div>
// <div className="hidden sm:block flex justify-center sm:justify-normal sm:pb-2">
// <ScreenMenu
// buttonsData={allMenuItems}
// onButtonClick={(value) => {
// setScreen(value);
// }}
// disabled={allMenuDisabled}
// />
// </div>

// <div className="sm:hidden">
// <MobileHeader />
// </div>
// <>
// {screen === "start" && (
// <AdventurerScreen
// spawn={spawn}
// handleSwitchAdventurer={handleSwitchAdventurer}
// />
// )}
// {screen === "play" && (
// <ActionsScreen
// explore={explore}
// attack={attack}
// flee={flee}
// />
// )}
// {screen === "inventory" && <InventoryScreen />}
// {screen === "leaderboard" && <LeaderboardScreen />}
// {screen === "upgrade" && <UpgradeScreen upgrade={upgrade} />}
// {screen === "profile" && <Profile />}
// {screen === "encounters" && <EncountersScreen />}
// {screen === "guide" && <GuideScreen />}
// {screen === "settings" && <Settings />}
// {screen === "player" && <Player />}
// {screen === "wallet" && <WalletSelect />}
// </>
// </>
// </div>
// ) : null}
// </>
// ) : (
// <Intro onIntroComplete={handleIntroComplete} />
// )}
// </main>
// <Maintenance />
<main
className={`min-h-screen container mx-auto flex flex-col sm:pt-8 sm:p-8 lg:p-10 2xl:p-20 `}
>
{introComplete ? (
<>
<div className="flex flex-col w-full">
<NetworkSwitchError isWrongNetwork={isWrongNetwork} />
{!spawnLoader && (
<div className="sm:hidden">
<TxActivity />
</div>
)}
<Header multicall={multicall} />
</div>
<div className="w-full h-1 sm:h-6 sm:my-2 bg-terminal-green text-terminal-black px-4">
{!spawnLoader && (
<div className="hidden sm:block">
<TxActivity />
</div>
)}
</div>
<NotificationDisplay />

{deathDialog && <DeathDialog />}

{status == "connected" && arcadeDialog && <ArcadeDialog />}
{status == "connected" && topUpDialog && <TopUpDialog />}

{introComplete ? (
<div className="flex flex-col w-full">
<>
<div className="sm:hidden flex sm:justify-normal sm:pb-2">
<ScreenMenu
buttonsData={mobileMenuItems}
onButtonClick={(value) => {
setScreen(value);
}}
disabled={mobileMenuDisabled}
/>
</div>
<div className="hidden sm:block flex justify-center sm:justify-normal sm:pb-2">
<ScreenMenu
buttonsData={allMenuItems}
onButtonClick={(value) => {
setScreen(value);
}}
disabled={allMenuDisabled}
/>
</div>

<div className="sm:hidden">
<MobileHeader />
</div>
<>
{screen === "start" && (
<AdventurerScreen
spawn={spawn}
handleSwitchAdventurer={handleSwitchAdventurer}
/>
)}
{screen === "play" && (
<ActionsScreen
explore={explore}
attack={attack}
flee={flee}
/>
)}
{screen === "inventory" && <InventoryScreen />}
{screen === "leaderboard" && <LeaderboardScreen />}
{screen === "upgrade" && <UpgradeScreen upgrade={upgrade} />}
{screen === "profile" && <Profile />}
{screen === "encounters" && <EncountersScreen />}
{screen === "guide" && <GuideScreen />}
{screen === "settings" && <Settings />}
{screen === "player" && <Player />}
{screen === "wallet" && <WalletSelect />}
</>
</>
</div>
) : null}
</>
) : (
<Intro onIntroComplete={handleIntroComplete} />
)}
</main>
);
}

1 comment on commit fbd4783

@vercel
Copy link

@vercel vercel bot commented on fbd4783 Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.