's'
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user