From 968d868c2737a2bbf6565ca775b117cb5fad4600 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Sun, 25 Jan 2026 08:26:40 -0700 Subject: [PATCH] Host disconnected --- App.tsx | 51 ++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 7 deletions(-) diff --git a/App.tsx b/App.tsx index bf7a69f..503e242 100644 --- a/App.tsx +++ b/App.tsx @@ -1,6 +1,8 @@ import React, { useState } from 'react'; import { useAuth } from 'react-oidc-context'; import { useLocation, useNavigate } from 'react-router-dom'; +import { motion } from 'framer-motion'; +import { RefreshCw, LogOut } from 'lucide-react'; import { useGame } from './hooks/useGame'; import { useQuizLibrary } from './hooks/useQuizLibrary'; import { useUserConfig } from './hooks/useUserConfig'; @@ -328,13 +330,48 @@ function App() { ) : null} {gameState === 'DISCONNECTED' && currentPlayerName && gamePin ? ( - + role === 'HOST' ? ( + // Host disconnected - show reconnecting state or allow ending game +
+ + + + + +

Reconnecting...

+ +

+ Restoring your game session for {gamePin} +

+ + + + Cancel & End Game + +
+
+ ) : ( + + ) ) : null} {gameState === 'WAITING_TO_REJOIN' && currentPlayerName ? (