onSelectProfile?.(profile)}
+ />
+ )
+ )
) : (
{t("noMutualYet")}
@@ -110,7 +130,7 @@ export default function LikesPanel({ likes, mutual, formatTime, t, onSelectProfi
{mutual.length > 0 ? (
{t("goMessages")}
diff --git a/app/[locale]/dating/components/MatchModal.tsx b/app/[locale]/dating/components/MatchModal.tsx
index 868c3c2..e6554cc 100644
--- a/app/[locale]/dating/components/MatchModal.tsx
+++ b/app/[locale]/dating/components/MatchModal.tsx
@@ -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) {
📍 {profile.location}
diff --git a/app/[locale]/dating/page.tsx b/app/[locale]/dating/page.tsx
index 13712f0..7205c13 100644
--- a/app/[locale]/dating/page.tsx
+++ b/app/[locale]/dating/page.tsx
@@ -63,7 +63,10 @@ function DatingPageInner() {
const [showLoginPrompt, setShowLoginPrompt] = useState(false);
const [showQuotaPrompt, setShowQuotaPrompt] = useState(false);
const [canUndo, setCanUndo] = useState(false);
- const [matchCelebration, setMatchCelebration] = useState(null);
+ const [matchCelebration, setMatchCelebration] = useState<{
+ profile: DatingProfile;
+ conversationId?: string;
+ } | null>(null);
const [mobilePanelOpen, setMobilePanelOpen] = useState(false);
const [dragX, setDragX] = useState(0);
const [isDragging, setIsDragging] = useState(false);
@@ -193,7 +196,10 @@ function DatingPageInner() {
const result = await saveSwipe(currentProfile.id, action, activeTab);
setCanUndo(true);
if (result.matched) {
- setMatchCelebration(currentProfile);
+ setMatchCelebration({
+ profile: currentProfile,
+ conversationId: result.match?.conversationId,
+ });
refreshSidePanels();
} else if (action === "like") {
refreshSidePanels();
@@ -467,7 +473,12 @@ function DatingPageInner() {
) : null}
- setMatchCelebration(null)} t={t} />
+ setMatchCelebration(null)}
+ t={t}
+ />