feat: best 匹配结果页展示 Top 3 候选排行,支持折叠查看备选餐厅
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user