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 : } /** 내 정보 창의 내가 쓴 글 */