- Implémentation complète du système d'administration (/admin) - Gestion des clients avec base de données JSON - Génération de token unique et QR code pour chaque client - Intégration des données client dans l'application (bungalow, WiFi, message) - Amélioration du composant WifiCard avec fallback de copie - Optimisation du hook useClientData pour chargement immédiat - Ajout de la variable d'environnement ADMIN_PASSWORD
21 lines
492 B
TypeScript
21 lines
492 B
TypeScript
"use client";
|
|
|
|
import { QRCodeSVG } from "qrcode.react";
|
|
|
|
interface QRCodeDisplayProps {
|
|
url: string;
|
|
size?: number;
|
|
}
|
|
|
|
export default function QRCodeDisplay({ url, size = 200 }: QRCodeDisplayProps) {
|
|
return (
|
|
<div className="flex flex-col items-center gap-4 p-4 bg-white rounded-2xl border border-gray-200">
|
|
<QRCodeSVG value={url} size={size} level="H" />
|
|
<p className="text-xs text-gray-600 text-center break-all max-w-xs">
|
|
{url}
|
|
</p>
|
|
</div>
|
|
);
|
|
}
|
|
|