This commit is contained in:
eric
2026-06-08 03:06:12 -05:00
parent 60dfe538b0
commit ebfec37e47
34 changed files with 1753 additions and 31 deletions

View File

@@ -6,11 +6,12 @@ import type { DatingProfile } from "../types";
interface MatchModalProps {
profile: DatingProfile | null;
conversationId?: string;
onClose: () => void;
t: (key: string) => string;
}
export default function MatchModal({ profile, onClose, t }: MatchModalProps) {
export default function MatchModal({ profile, conversationId, onClose, t }: MatchModalProps) {
if (!profile) return null;
return (
@@ -33,7 +34,7 @@ export default function MatchModal({ profile, onClose, t }: MatchModalProps) {
<p className="mt-1 text-sm text-gray-500 dark:text-gray-400">📍 {profile.location}</p>
<div className="mt-6 flex flex-col gap-3">
<Link
href="/messages"
href={conversationId ? `/chat/${conversationId}` : "/chat"}
onClick={onClose}
className="inline-flex items-center justify-center rounded-full bg-[#ff4d4f] px-4 py-3 text-sm font-semibold text-white transition hover:bg-red-600"
>