diff --git a/src/pages/subscription/Subscription.jsx b/src/pages/subscription/Subscription.jsx index a1ae586..5aedf87 100644 --- a/src/pages/subscription/Subscription.jsx +++ b/src/pages/subscription/Subscription.jsx @@ -741,6 +741,7 @@ function AnnouncementsTab() { function MatchesTab() { const [items, setItems] = useState([]); const [total, setTotal] = useState(0); + const [myPoints, setMyPoints] = useState(null); const [page, setPage] = useState(1); const [refreshing, setRefreshing] = useState(false); const [loading, setLoading] = useState(true); @@ -753,6 +754,7 @@ function MatchesTab() { const data = await apiGet(`/api/realestate/matches?page=${page}&size=${size}`); setItems(data.items || []); setTotal(data.total || 0); + if (data.my_points) setMyPoints(data.my_points); } catch (e) { console.error('Matches load error:', e); setItems([]); @@ -789,9 +791,20 @@ function MatchesTab() { return (
- 총 {total}건의 매칭 결과 -
++ 총 {total}건의 매칭 결과 +
+ {myPoints && ( + = 60 ? '#34d399' : myPoints.total >= 40 ? '#f59e0b' : '#f87171', + background: myPoints.total >= 60 ? 'rgba(52,211,153,0.1)' : myPoints.total >= 40 ? 'rgba(245,158,11,0.1)' : 'rgba(248,113,113,0.1)', + fontWeight: 700, fontSize: 12, + }}> + 내 가점 {myPoints.total}/{myPoints.max_total} + + )} +청약 가점
+