Skip to content

Commit

Permalink
redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l committed Apr 15, 2024
1 parent 4697db8 commit 7143796
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion web/src/components/wallet/ConnectModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ExternalLink } from "@/components/icons";
import { useDojoContext } from "@/dojo/hooks";
import { useDojoContext, useRouterContext } from "@/dojo/hooks";
import {
Button,
HStack,
Expand All @@ -19,6 +19,7 @@ import { walletInstallLinks, walletInstallLinksKeys } from "./StarknetProvider";

export const ConnectModal = observer(() => {
const { connect, connectors } = useConnect();
const { isRyoDotGame } = useRouterContext();

const {
chains: { selectedChain },
Expand Down Expand Up @@ -57,6 +58,10 @@ export const ConnectModal = observer(() => {
return null;
}

if (isRyoDotGame && isPredeployed) {
return null
}

return (
<HStack w="full" key={connector.id}>
<Button
Expand Down
6 changes: 3 additions & 3 deletions web/src/pages/create/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ const New = observer(() => {
isLoading={isPending}
onClick={() => create(GameMode.Dealer)}
>
Play Dealer
Play
</Button>

<Button
{/* <Button
w={["full", "auto"]}
px={["auto", "20px"]}
isLoading={isPending}
onClick={() => create(GameMode.Warrior)}
>
Play Warrior
</Button>
</Button> */}
</ChildrenOrConnect>
</Footer>
}
Expand Down

0 comments on commit 7143796

Please sign in to comment.