새 템플릿을 숙박에만 등록해서 음식점 사장님 화면에는 4종만 보였다. - templates.json: cafe · restaurant · clinic 에 라운드~솔숲 8종 추가 - kit/unitWord.ts: Room / Menu / Program — 코랄·미니멀·시네마·부티크·빅타이포의 영문 라벨 - 각 Rooms.tsx: 객실별 '예약 요청' 버튼은 숙박일 때만(예약 시트가 숙박에만 있어 누르면 무반응) - 이용안내 머리말 · 미니 블로그 설명을 업종 중립 문구로, 부티크 탭 'Stay' → 비숙박은 'Guide' - docs/TEMPLATES.md: 업종별 사용 범위 eslint·tsc 통과, vitest 123 passed, 숙박 9 + 카페·음식점·병원 각 8 = 33개 사이트 굽기 성공 · 숙박 전용 문구(객실·체크인·Room·예약 요청) 0건 · 간격 검사 0건 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
319 B
TypeScript
13 lines
319 B
TypeScript
import {PlaceCategory} from '@o2o/shared';
|
|
|
|
const WORD: Record<number, string> = {
|
|
[PlaceCategory.LODGING]: 'Room',
|
|
[PlaceCategory.CAFE]: 'Menu',
|
|
[PlaceCategory.RESTAURANT]: 'Menu',
|
|
[PlaceCategory.CLINIC]: 'Program',
|
|
};
|
|
|
|
export function unitWord(category: number): string {
|
|
return WORD[category] ?? 'Menu';
|
|
}
|