mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Affichage nom de salle
This commit is contained in:
parent
fb41980f29
commit
dc7fb82d97
2 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ const JoinRoom: React.FC = () => {
|
||||||
const [connectionError, setConnectionError] = useState<string>('');
|
const [connectionError, setConnectionError] = useState<string>('');
|
||||||
const [isConnecting, setIsConnecting] = useState<boolean>(false);
|
const [isConnecting, setIsConnecting] = useState<boolean>(false);
|
||||||
const [isQRCodeJoin, setIsQRCodeJoin] = useState(false);
|
const [isQRCodeJoin, setIsQRCodeJoin] = useState(false);
|
||||||
const [searchParams] = useSearchParams(); // Remplacer l'ancienne méthode
|
const [searchParams] = useSearchParams();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const roomFromUrl = searchParams.get('roomName');
|
const roomFromUrl = searchParams.get('roomName');
|
||||||
|
|
@ -210,7 +210,7 @@ const JoinRoom: React.FC = () => {
|
||||||
default:
|
default:
|
||||||
return (
|
return (
|
||||||
<LoginContainer
|
<LoginContainer
|
||||||
title={isQRCodeJoin ? 'Rejoindre avec QR Code' : 'Rejoindre une salle'}
|
title={isQRCodeJoin ? `Rejoindre la ${roomName}` : 'Rejoindre une salle'}
|
||||||
error={connectionError}
|
error={connectionError}
|
||||||
>
|
>
|
||||||
{/* Afficher champ salle SEULEMENT si pas de QR code */}
|
{/* Afficher champ salle SEULEMENT si pas de QR code */}
|
||||||
|
|
|
||||||
|
|
@ -490,7 +490,7 @@ const ManageRoom: React.FC = () => {
|
||||||
onClose={() => setShowQrModal(false)}
|
onClose={() => setShowQrModal(false)}
|
||||||
aria-labelledby="qr-modal-title"
|
aria-labelledby="qr-modal-title"
|
||||||
>
|
>
|
||||||
<DialogTitle id="qr-modal-title">Rejoindre la salle</DialogTitle>
|
<DialogTitle id="qr-modal-title">Rejoindre la salle: {formattedRoomName}</DialogTitle>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogContentText>
|
<DialogContentText>
|
||||||
Scannez ce QR code ou partagez le lien ci-dessous pour rejoindre la salle :
|
Scannez ce QR code ou partagez le lien ci-dessous pour rejoindre la salle :
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue