From 2b87fb7d28dcec4044060c08511f4766e9415c34 Mon Sep 17 00:00:00 2001 From: pb-coding <71174645+pb-coding@users.noreply.github.com> Date: Mon, 25 Sep 2023 12:39:40 +0200 Subject: [PATCH] adds leave buttons & more --- .env | 4 ++-- src/App.tsx | 7 +++++-- src/components/Footer.tsx | 17 ++++++++++++----- .../{JoinSession.tsx => SessionManager.tsx} | 17 +++++++++++++++-- 4 files changed, 34 insertions(+), 11 deletions(-) rename src/components/{JoinSession.tsx => SessionManager.tsx} (84%) diff --git a/.env b/.env index 7751623..b35bba8 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ VITE_ENVIRONMENT=dev VITE_BACKEND_URL=https://skyjo-backend.voltvector.org -#VITE_ENVIRONMENT=local -#VITE_BACKEND_URL=http://localhost:3001 \ No newline at end of file +VITE_ENVIRONMENT=local +VITE_BACKEND_URL=http://localhost:3001 \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 33c5d66..144661d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,7 +3,7 @@ import { socket } from "./socket"; import GameCanvas from "./components/GameCanvas"; import { Footer } from "./components/Footer"; -import { JoinSession } from "./components/JoinSession"; +import { SessionManager } from "./components/SessionManager"; import { Game } from "./types/gameTypes"; import MessageDisplay from "./components/MessageDisplay"; @@ -72,8 +72,9 @@ export default function App() { return (