Skip to content

Commit

Permalink
Refactor layout component to conditionally render NonTokenModalContent
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehs committed Mar 2, 2024
1 parent d933231 commit af4438f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/(game)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ export default function RootLayout({
<body>
<div className="mx-auto flex h-[100svh] w-screen max-w-[768px] flex-col font-sans text-gray-950">
<Nav />
{isClient && token ? (
<div>playerToken: {token}</div>
) : (
<NonTokenModalContent />
)}
{!token && isClient && <NonTokenModalContent />}
<div className="grow overflow-y-scroll">{children}</div>
<Footer />
</div>
Expand Down

0 comments on commit af4438f

Please sign in to comment.