From b9623ffe17d4d6ab13d06845c09724b97e27aa16 Mon Sep 17 00:00:00 2001 From: GameDog9988 Date: Tue, 3 Oct 2023 21:08:29 -0400 Subject: [PATCH] feat: dev updates from payment PR --- apps/client/src/app/invite/[code]/page.tsx | 64 +++++++++---------- apps/client/src/app/page.tsx | 54 ++++++++-------- apps/client/src/app/room/[code]/lobby.tsx | 54 ++++++++-------- apps/client/src/app/room/[code]/page.tsx | 6 +- apps/client/src/components/header.tsx | 16 +++++ apps/client/src/components/menu.tsx | 24 +++---- apps/client/src/utils/hooks/use-click-away.ts | 6 +- apps/server/src/services/room.service.ts | 4 ++ packages/tsconfig/nextjs.json | 2 +- 9 files changed, 122 insertions(+), 108 deletions(-) create mode 100644 apps/client/src/components/header.tsx diff --git a/apps/client/src/app/invite/[code]/page.tsx b/apps/client/src/app/invite/[code]/page.tsx index 25a999df..3dab0953 100644 --- a/apps/client/src/app/invite/[code]/page.tsx +++ b/apps/client/src/app/invite/[code]/page.tsx @@ -7,9 +7,9 @@ import Footer from "@ai/components/footer"; import Friend from "@ai/components/game/friend"; import SignInForm from "@ai/components/sign-in-form"; import { authOptions } from "@ai/pages/api/auth/[...nextauth]"; -import Menu from "@ai/components/menu"; import { LinkSecondaryButton } from "@ai/components/button"; import { getRunningGame } from "@ai/utils/server-actions"; +import Header from "@ai/components/header"; export default async function Invite({ params }: { params: { code: string } }) { const roomInfo = await getRoomInfo(params.code); @@ -27,39 +27,37 @@ export default async function Invite({ params }: { params: { code: string } }) { } return ( -
- {session && ( -
- -
- )} -
- {runningGame && ( -
- - Join Back Into {runningGame ? "Game" : "Room"} - + <> +
+
+
+ {runningGame && ( +
+ + Join Back Into {runningGame ? "Game" : "Room"} + +
+ )} +
+

The AI Image Party Game

+

+ artificial
{" "} + unintelligence +

+
- )} -
-

The AI Image Party Game

-

- artificial
{" "} - unintelligence -

- -
- -
+ +
+