From 709dcf742efa32d83f5b2141e57228fe9c82759f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=B1=EA=B2=BD?= Date: Wed, 4 Nov 2026 16:54:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=95=B1=EC=9D=B4=20=EC=BC=9C=EC=9E=90?= =?UTF-8?q?=EB=A7=88=EC=9E=90=20=EA=BA=BC=EC=A7=80=EB=8D=98=20=EA=B2=83=20?= =?UTF-8?q?=E2=80=94=20=EC=84=9C=EB=B2=84=EA=B0=80=20=EB=B9=88=20=EB=AC=B8?= =?UTF-8?q?=EC=9E=90=EC=97=B4(=EB=85=B8=EC=9D=84=20line=20=EB=93=B1)?= =?UTF-8?q?=EC=9D=84=20=EC=A3=BC=EB=A9=B4=20'&&'=EA=B0=80=20=EB=B9=88=20?= =?UTF-8?q?=EA=B8=80=EC=9E=90=EB=A5=BC=20View=20=EC=95=88=EC=97=90=20?= =?UTF-8?q?=EA=B7=B8=EB=A0=A4=20=EC=95=88=EB=93=9C=EB=A1=9C=EC=9D=B4?= =?UTF-8?q?=EB=93=9C=EC=97=90=EC=84=9C=20'Text=20strings=20must=20be=20ren?= =?UTF-8?q?dered=20within=20a=20'=EB=A1=9C=20=EC=A2=85=EB=A3=8C?= =?UTF-8?q?=EB=90=A8.=20=EB=AC=B8=EC=9E=90=EC=97=B4=20=EC=A1=B0=EA=B1=B4?= =?UTF-8?q?=EC=9D=84=20!!=EB=A1=9C=20=EA=B0=90=EC=8C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- mobile/src/components/gak/grid.tsx | 2 +- mobile/src/components/gak/podium.tsx | 2 +- mobile/src/components/post/slides.tsx | 8 ++++---- mobile/src/components/season/parts.tsx | 6 +++--- mobile/src/components/sheets/article.tsx | 6 +++--- mobile/src/components/sheets/gak.tsx | 8 ++++---- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/mobile/src/components/gak/grid.tsx b/mobile/src/components/gak/grid.tsx index d24e4f5..1b87829 100644 --- a/mobile/src/components/gak/grid.tsx +++ b/mobile/src/components/gak/grid.tsx @@ -35,7 +35,7 @@ export function GakGrid({ items, dim }: { items: IndexSummary[]; dim: boolean }) className={`${CELL} ${g.active ? '' : 'opacity-55'}`} > {g.active && {g.rank}} - {g.season && {g.season}} + {!!g.season && {g.season}} {g.name} diff --git a/mobile/src/components/gak/podium.tsx b/mobile/src/components/gak/podium.tsx index 54846d0..82fbb45 100644 --- a/mobile/src/components/gak/podium.tsx +++ b/mobile/src/components/gak/podium.tsx @@ -48,7 +48,7 @@ export function Podium({ top, dim }: { top: IndexSummary[]; dim: boolean }) { {g.score} - {g.summary && {g.summary}} + {!!g.summary && {g.summary}} ); })} diff --git a/mobile/src/components/post/slides.tsx b/mobile/src/components/post/slides.tsx index 375efd6..1f3e47c 100644 --- a/mobile/src/components/post/slides.tsx +++ b/mobile/src/components/post/slides.tsx @@ -170,7 +170,7 @@ export function SlideView({ slide, bg }: { slide: Slide; bg: SlideBg }) { {slide.eyebrow} {/* 노을 탭 히어로와 같은 순서: 결론 → 가장 붉을 때 → 쉬운 이유 */} {slide.headline ?? slide.grade_label} - {slide.line && {slide.line}} + {!!slide.line && {slide.line}} {slide.cuts.map((c, i) => ( @@ -224,7 +224,7 @@ export function SlideView({ slide, bg }: { slide: Slide; bg: SlideBg }) { ))} - {slide.tip && {slide.tip}} + {!!slide.tip && {slide.tip}} ); if (slide.kind === 'plan') { @@ -246,7 +246,7 @@ export function SlideView({ slide, bg }: { slide: Slide; bg: SlideBg }) { {st.sub} - {st.image && } + {!!st.image && } ))} @@ -258,7 +258,7 @@ export function SlideView({ slide, bg }: { slide: Slide; bg: SlideBg }) { return ( - {slide.image_credit && } + {!!slide.image_credit && } {slide.eyebrow} diff --git a/mobile/src/components/season/parts.tsx b/mobile/src/components/season/parts.tsx index d4229f2..2519948 100644 --- a/mobile/src/components/season/parts.tsx +++ b/mobile/src/components/season/parts.tsx @@ -62,7 +62,7 @@ export function SeasonHead({ week: w, onPress }: { week: ResSeasonWeek; onPress: 이번 주 특집{w.start && w.end ? ` · ${dateRange(w.start, w.end)}` : ''} {w.headline} {poem.length > 0 && {poem.join('\n')}} - {w.term_now && w.term_next && ( + {!!w.term_now && !!w.term_next && ( @@ -88,7 +88,7 @@ export function ArticleRow({ article: a, onPress }: { article: ArticleSummary; o return ( - {ARTICLE_LABEL[a.category] && ( + {!!ARTICLE_LABEL[a.category] && ( {ARTICLE_LABEL[a.category]} @@ -98,7 +98,7 @@ export function ArticleRow({ article: a, onPress }: { article: ArticleSummary; o - {a.image && a.image_credit && } + {!!a.image && !!a.image_credit && } ); diff --git a/mobile/src/components/sheets/article.tsx b/mobile/src/components/sheets/article.tsx index ed193a4..8f09daf 100644 --- a/mobile/src/components/sheets/article.tsx +++ b/mobile/src/components/sheets/article.tsx @@ -28,7 +28,7 @@ export function ArticleSheet({ articleId, onTitle }: { articleId: number; onTitl - {a.image && a.image_credit && } + {!!a.image && !!a.image_credit && } {articleMeta(a)} {a.title} @@ -61,10 +61,10 @@ export function SeasonWeekSheet() { {w.poem_lines?.join(' ')} - {w.author && {w.author}} + {!!w.author && {w.author}} )} - {w.term_now && w.term_next && ( + {!!w.term_now && !!w.term_next && ( 지금 절기는 {w.term_now.name}({shortDay(w.term_now.day)}), 다음 절기는 {w.term_next.name}({shortDay(w.term_next.day)})예요. diff --git a/mobile/src/components/sheets/gak.tsx b/mobile/src/components/sheets/gak.tsx index 1bbde8f..bf99bb5 100644 --- a/mobile/src/components/sheets/gak.tsx +++ b/mobile/src/components/sheets/gak.tsx @@ -121,7 +121,7 @@ export function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: s {g.name} - {d.description && {d.description}} + {!!d.description && {d.description}} {g.score} @@ -194,7 +194,7 @@ export function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: s ))} - {d.zero_reason && ( + {!!d.zero_reason && ( 오늘 걸린 조건: {d.zero_reason} @@ -204,12 +204,12 @@ export function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: s 계산 방법: 요소 점수에 비중을 곱해 더하고, 가장 낮은 요소가 낮을수록 최대 25%까지 더 깎아요 )} - {d.zero_rules && ( + {!!d.zero_rules && ( 점수 깎이는 조건: {d.zero_rules} )} - {d.limit && ( + {!!d.limit && ( 반영 못 한 것: {d.limit}