From 4f36451da0014d9b2c2994ae90ed27dc0730c163 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Thu, 29 Oct 2026 16:12:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8B=A8=ED=92=8D=20=EC=A7=80=EB=8F=84?= =?UTF-8?q?=20=EC=B9=B4=EB=93=9C=EC=97=90=20=EC=A2=8B=EC=95=84=EC=9A=94?= =?UTF-8?q?=C2=B7=EB=8C=93=EA=B8=80=EC=9D=B4=20=EB=8B=A4=EC=8B=9C=20?= =?UTF-8?q?=EB=B3=B4=EC=9D=B4=EA=B2=8C=20=E2=80=94=2010/27=20=EC=B9=B4?= =?UTF-8?q?=EB=93=9C=20=EC=9C=84=EC=B9=98=EB=A5=BC=20=EC=98=AE=EA=B8=B0?= =?UTF-8?q?=EB=A9=B0=20=EB=B9=A0=EC=A7=84=20foliage=5Fpost=20=EC=97=B0?= =?UTF-8?q?=EA=B2=B0=20=EB=B3=B5=EA=B5=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/TodayPage.tsx | 2 +- frontend/src/b/foliageMap.tsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/b/TodayPage.tsx b/frontend/src/b/TodayPage.tsx index c3b848d..662bcec 100644 --- a/frontend/src/b/TodayPage.tsx +++ b/frontend/src/b/TodayPage.tsx @@ -639,7 +639,7 @@ export function TodayPage() { } className="inset-x-3 top-3.5 bottom-auto" /> )} {/* 단풍철엔 단풍 지도를 포스트 맨 앞에 */} - {load !== 'loading' && posts.length > 0 && } + {load !== 'loading' && posts.length > 0 && } {posts.map((p, i) => { const t = talkAt(i) const ev = eventNo.get(p.post_id) diff --git a/frontend/src/b/foliageMap.tsx b/frontend/src/b/foliageMap.tsx index 45879d9..f8f4812 100644 --- a/frontend/src/b/foliageMap.tsx +++ b/frontend/src/b/foliageMap.tsx @@ -1,5 +1,6 @@ import { useEffect, useLayoutEffect, useMemo, useRef, useState, type MouseEvent } from 'react' import { useNavigate } from 'react-router' +import type { PostReaction } from '@nalssigak/shared/api/client/types.gen' import { cx } from '../lib/utils' import { useCarousel } from './carousel' import { headline, ICON_R, LABEL, LABEL_INK, LEAF_SHADOW, MAP_IMG, MAP_SRC, md, placeLabels, PROVINCE, PROVINCES, labelBoxes, placeProvinces, rankNow, spread, useFoliage, useLabelSize } from './foliage' @@ -14,7 +15,7 @@ const TAP_R = 24 const RANK_N = 7 /** 피드의 단풍 지도 카드: 1장은 지금 절정인 곳만 잎 아이콘으로(누르면 카드 안에 정보), 2장은 지금 가기 좋은 순위. '지도 크게 보기'로 단풍 지도 페이지 */ -export function FoliageCard() { +export function FoliageCard({ post }: { post?: PostReaction | null }) { const navigate = useNavigate() const { today, spots, inSeason } = useFoliage() const peak = useMemo(() => spots.filter((m) => m.stage === 'peak').sort((a, b) => Number(a.kind === 'ginkgo') - Number(b.kind === 'ginkgo') || a.y - b.y), [spots]) @@ -60,7 +61,7 @@ export function FoliageCard() { // 2번째 장: 지금 절정인 곳을 절정 예상일이 오늘과 가까운 순서로 const ranked = rankNow(spots).slice(0, RANK_N) return ( - m.name).join(' · ')}${peak.length > 5 ? ' 외' : ''}` : undefined}> + m.name).join(' · ')}${peak.length > 5 ? ' 외' : ''}` : undefined}>

단풍 지도 · {md(today)}

{headline(spots)}