Skip to content

Commit

Permalink
nit: center connect wallet warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rsproule committed Jan 3, 2024
1 parent f37a3fb commit da7ed27
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions frontend/src/app/games/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ import {
useTankGamePlayersCount,
} from "@/src/generated";
import { useEffect, useState } from "react";
import { Address, useAccount, useBalance, useBlockNumber, useNetwork } from "wagmi";
import {
Address,
useAccount,
useBalance,
useBlockNumber,
useNetwork,
} from "wagmi";
import { getPublicClient } from "wagmi/actions";
import CreateGameForm from "@/src/components/CreateGameForm";
import {
Expand Down Expand Up @@ -54,7 +60,17 @@ export default function GamesList() {
}, [blockNumber]);

if (!address) {
return <div>Connect your wallet to see games.</div>;
return;
<div
style={{
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100vh",
}}
>
Connect your wallet to see games.
</div>;
}
return (
<div className="container pb-20">
Expand Down

0 comments on commit da7ed27

Please sign in to comment.