diff --git a/frontend/src/pages/LoginPage.tsx b/frontend/src/pages/LoginPage.tsx index 682a6c0..05070f6 100644 --- a/frontend/src/pages/LoginPage.tsx +++ b/frontend/src/pages/LoginPage.tsx @@ -5,6 +5,9 @@ import { z } from 'zod' import { useNavigate } from 'react-router-dom' import { useAuth } from '@/context/AuthContext' import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' +import { + Dialog, DialogContent, DialogHeader, DialogTitle, +} from '@/components/ui/dialog' import { Input } from '@/components/ui/input' import { Button } from '@/components/ui/button' import { Label } from '@/components/ui/label' @@ -27,6 +30,7 @@ export function LoginPage() { const [error, setError] = useState(null) const [showMfa, setShowMfa] = useState(false) const [isSubmitting, setIsSubmitting] = useState(false) + const [legalDialog, setLegalDialog] = useState<{ title: string; url: string } | null>(null) const { register, @@ -150,6 +154,35 @@ export function LoginPage() { + +
+ + · + +
+ + { if (!open) setLegalDialog(null) }}> + + + {legalDialog?.title} + +