feat: 구로 나뉜 13개 시의 구마다 자기 주소(/today/gyeonggi/seongnam/bundang, 39장), 구를 고르면 구 주소로

This commit is contained in:
minaChoi committed 2026-10-20 09:35:16 +09:00
1 parent 0a16c5329d
commit 96cbd19c61
9 files changed
+595 -15

No files matched your search

+3 -3
View File
@@ -25,7 +25,7 @@ import { track } from '../lib/analytics'
import { cx } from '../lib/utils'
import { useAuth } from './authContext'
import { ago, ARTICLE_CAT, articleMeta, AVATAR_COLORS, cardBg, CHARACTERS, dateRange, loadOf, MOODS, shortDay } from './lib'
import { useRegion } from './regionContext'
import { ownPage, useRegion } from './regionContext'
import { useSky } from './skyContext'
import { SHARE_SIZES, shareImage, type ShareSize } from './storyImage'
import { SheetContext, useSheet, type SharePayload, type SheetState } from './sheetContext'
@@ -989,9 +989,9 @@ function MeSheet({ onDone }: { onDone: () => void }) {
/* ---------- 지역 ---------- */
const LOCATE_TEXT = { idle: '', locating: '위치를 찾는 중이에요…', denied: '위치 권한이 꺼져 있어요. 아래 목록에서 골라 주세요.', error: '위치를 찾지 못했어요. 아래 목록에서 골라 주세요.' } as const
/** 구 코드 → 그 구가 속한 지역 페이지 주소 */
/** 구 코드 → 그 구의 지역 페이지 주소 */
const pageHref = (code: string) => {
const p = regionPages.find((g) => g.regions.some((r) => r.code === code))
const p = ownPage(code)
return p ? `/today/${p.path}` : '/'
}