From 0144a64b426a8027a8c369f7e67a2880b58a263a Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Sat, 24 Oct 2026 18:28:21 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=86=A0=EC=8A=A4=ED=8C=90=EC=9D=80=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=97=86=EC=9D=B4=20=E2=80=94=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EB=B2=84=ED=8A=BC=C2=B7=EA=B8=80?= =?UTF-8?q?=EC=93=B0=EA=B8=B0=20=EC=B9=B8=C2=B7=EA=B8=80=20=EB=8D=94?= =?UTF-8?q?=EB=B3=B4=EA=B8=B0(=EC=8B=A0=EA=B3=A0=C2=B7=EC=B0=A8=EB=8B=A8)?= =?UTF-8?q?=20=EC=88=A8=EA=B9=80,=20=EB=91=90=20=EB=B2=88=EC=A7=B8=20?= =?UTF-8?q?=EB=82=B4=20=EA=B0=81=EC=9D=80=20=EC=95=88=EB=82=B4=EB=A7=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/BLayout.tsx | 3 +- frontend/src/b/Sheets.tsx | 58 ++++++-------------------------------- frontend/src/b/talk.tsx | 18 ++++++++---- 3 files changed, 24 insertions(+), 55 deletions(-) diff --git a/frontend/src/b/BLayout.tsx b/frontend/src/b/BLayout.tsx index aebc850..f173ea7 100644 --- a/frontend/src/b/BLayout.tsx +++ b/frontend/src/b/BLayout.tsx @@ -2,6 +2,7 @@ import { useCallback, useEffect, useMemo, useState, type ReactNode } from 'react import { NavLink, Outlet, useLocation, useNavigationType } from 'react-router' import { useIsFetching, useQuery } from '@tanstack/react-query' import { getSeasonWeekOptions } from '../api/client/@tanstack/react-query.gen' +import { IS_TOSS } from '../lib/platform' import { cx } from '../lib/utils' import { kindOfHour, kst, seasonOf, type TimeKind } from './lib' import './b.css' @@ -61,7 +62,7 @@ function TopBar() { {locateStatus === 'locating' ? : {region.name}{region.name.split(' ').at(-1)}} - {mePending ? ( + {IS_TOSS ? null : mePending ? ( ) : me ? ( - ) @@ -1113,12 +1073,12 @@ function RegionSheet({ onDone }: { onDone: () => void }) { ))} -

+ {!IS_TOSS &&

{me ? `${me.nickname}(으)로 로그인했어요` : '로그인하면 좋아요·댓글을 쓸 수 있어요'} -

+

} ) } diff --git a/frontend/src/b/talk.tsx b/frontend/src/b/talk.tsx index e4be301..bc0b7ce 100644 --- a/frontend/src/b/talk.tsx +++ b/frontend/src/b/talk.tsx @@ -12,6 +12,7 @@ import { import { uploadTalkImage } from '../api/client/sdk.gen' import { TalkReport, TalkTopic, type TalkData } from '../api/client/types.gen' import { API_BASE_URL } from '../api/setup' +import { IS_TOSS } from '../lib/platform' import { cx } from '../lib/utils' import { useAuth } from './authContext' import { ago, kst } from './lib' @@ -251,10 +252,15 @@ function TalkRow({ t, onGone, compact }: { t: TalkData; onGone?: () => void; com )} {t.image && !compact && } - {ago(t.created_at)} · 좋아요 {count}개 ·{' '} - + {ago(t.created_at)} · 좋아요 {count}개 + {!IS_TOSS && ( + <> + {' · '} + + + )} {menu !== 'closed' && (
@@ -298,6 +304,7 @@ function TalkRow({ t, onGone, compact }: { t: TalkData; onGone?: () => void; com /** 이야기 탭: 쓰기 칸과 전국 최신 글 (아래로 더 받기) */ /** 피드 위 쓰는 칸. 늘 펼쳐 두고, 방금 올린 글은 바로 아래에 보인다 (피드 사이 글은 새로 받을 때 섞인다) */ export function FeedComposer({ onPosted }: { onPosted: (t: TalkData) => void }) { + if (IS_TOSS) return null return (
@@ -367,7 +374,8 @@ export function FirstTalkCard() { /** '동네 사람들' 자리: 글이 GROUP_MIN 개 이상이면 묶음, 아니면 첫 글 쓰기 */ export function NearTalks({ talks, loaded }: { talks: TalkData[]; loaded: boolean }) { if (!loaded) return null - return talks.length >= GROUP_MIN ? : + if (talks.length >= GROUP_MIN) return + return IS_TOSS ? null : } /** 내 정보 창의 내가 쓴 글 */