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