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

@@ -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<DatingProfile | null>(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() {
</div>
) : null}
<MatchModal profile={matchCelebration} onClose={() => setMatchCelebration(null)} t={t} />
<MatchModal
profile={matchCelebration?.profile ?? null}
conversationId={matchCelebration?.conversationId}
onClose={() => setMatchCelebration(null)}
t={t}
/>
<Footer />
</div>
);