Skip to content

Commit

Permalink
add offline connect
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyGrin committed Mar 30, 2024
1 parent cdd90d8 commit 048d233
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/Connect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import styled from "@emotion/styled";
import { PlusSquareIcon } from "@chakra-ui/icons";
import { useCopyToClipboard } from "@/lib/hooks/useCopyToClipboard";
import { toast } from "react-hot-toast";
import Link from "next/link";

export const ConnectPage = () => {
const router = useRouter();
Expand Down Expand Up @@ -111,6 +112,9 @@ export const ConnectPage = () => {
{loading && <Spinner />}
Connect to Game
</Button>
<Button as={Link} href={{ pathname: "/offline" }}>
Play Offline without Map
</Button>
</VStack>
{sharedDeckId === undefined && (
<PlusSquareIcon
Expand Down

0 comments on commit 048d233

Please sign in to comment.