From a9155de1bd0fbfa067cdddab5c7d05f555f33a99 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Sun, 25 Jan 2026 09:24:51 -0700 Subject: [PATCH] Fix --- components/Lobby.tsx | 24 +++++++++++++++++++----- components/RevealScreen.tsx | 26 ++++++-------------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/components/Lobby.tsx b/components/Lobby.tsx index c6840cd..b8ff456 100644 --- a/components/Lobby.tsx +++ b/components/Lobby.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import { Player } from '../types'; import { motion, AnimatePresence } from 'framer-motion'; -import { Sparkles, User, X, Link, Check, QrCode, Crown, LogOut, UserX } from 'lucide-react'; +import { Sparkles, User, X, Link, Check, QrCode, Crown, LogOut, UserX, Loader2 } from 'lucide-react'; import { QRCodeSVG } from 'qrcode.react'; import { PlayerAvatar } from './PlayerAvatar'; import toast from 'react-hot-toast'; @@ -28,6 +28,12 @@ export const Lobby: React.FC = ({ quizTitle, players, gamePin, role, const currentPlayer = currentPlayerId ? players.find(p => p.id === currentPlayerId) : null; const [linkCopied, setLinkCopied] = useState(false); const [isQrModalOpen, setIsQrModalOpen] = useState(false); + const [isStarting, setIsStarting] = useState(false); + + const handleStart = () => { + setIsStarting(true); + onStart(); + }; const isPresenter = currentPlayerId === presenterId; const canSelectPresenter = isHost && !hostParticipates && onSetPresenter; @@ -245,11 +251,19 @@ export const Lobby: React.FC = ({ quizTitle, players, gamePin, role, )} diff --git a/components/RevealScreen.tsx b/components/RevealScreen.tsx index 41c7f4d..3d88a68 100644 --- a/components/RevealScreen.tsx +++ b/components/RevealScreen.tsx @@ -202,13 +202,13 @@ export const RevealScreen: React.FC = ({ - {/* Bottom sheet for incorrect answers - includes button inside */} + {/* Bottom sheet for incorrect answers */} {!isCorrect && ( {selectedOption && selectedOption.reason && (
@@ -232,31 +232,17 @@ export const RevealScreen: React.FC = ({

)}
- - {/* Continue button inside bottom sheet for incorrect answers */} - {showContinueButton && ( - - Continue to Scoreboard - - - )}
)} - {/* Continue button for correct answers - fixed at bottom */} - {isCorrect && showContinueButton && ( + {/* Continue button - fixed at bottom for both correct and incorrect */} + {showContinueButton && ( Continue to Scoreboard