feat: best 匹配结果页展示 Top 3 候选排行,支持折叠查看备选餐厅

This commit is contained in:
2026-02-24 19:30:10 +08:00
parent 30329df136
commit 5d297684fc
6 changed files with 278 additions and 170 deletions
+5 -1
View File
@@ -6,7 +6,7 @@ import SwipeableCard from "./SwipeableCard";
import ActionButtons from "./ActionButtons";
import MatchResult from "./MatchResult";
import SwipeGuide from "./SwipeGuide";
import { Restaurant, SwipeDirection, MatchType } from "@/types";
import { Restaurant, SwipeDirection, MatchType, RunnerUp } from "@/types";
import { Heart, Undo2, Check } from "lucide-react";
const AVATARS = [
@@ -144,6 +144,7 @@ interface SwipeDeckProps {
matchedRestaurantId: string | null;
matchType: MatchType;
matchLikes: number;
runnerUps: RunnerUp[];
likeCounts: Record<string, number>;
swipeCounts: Record<string, number>;
userCount: number;
@@ -158,6 +159,7 @@ export default function SwipeDeck({
matchedRestaurantId,
matchType,
matchLikes,
runnerUps,
likeCounts,
swipeCounts,
userCount,
@@ -398,6 +400,8 @@ export default function SwipeDeck({
restaurant={matchRestaurant}
matchType={matchType ?? "unanimous"}
matchLikes={matchLikes}
runnerUps={runnerUps}
allRestaurants={restaurants}
userCount={userCount}
onReset={handleReset}
resetting={resetting}