이름: solution/front → solution/frontend
`backend` 옆에 `front` 가 있을 이유가 없었다. negosium 의 negodata/front 를 그대로 베꼈고 그게 왜 front 인지는 따져보지 않았다 — 근거 없이 들여온 이름이라 바로잡는다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019uYhHQdssRubirPirrdJJC
This commit is contained in:
1 parent
06f6438d9b
commit
c85c577349
480 files changed
+22
-22
No files matched your search
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* 오시는 길 · 간단 — 주소 한 줄과 길찾기 버튼만.
|
||||
* 도심처럼 "주소만 알면 찾아오는" 곳이면 표까지 깔 이유가 없다.
|
||||
*/
|
||||
import {MapPin} from 'lucide-react';
|
||||
import {
|
||||
AddressCard,
|
||||
EmptyStateNotice,
|
||||
SectionBody,
|
||||
SectionFrame,
|
||||
SectionHeading,
|
||||
} from '../../primitives';
|
||||
import type {SectionRenderProps} from '../../types';
|
||||
|
||||
export function MapCompact(props: SectionRenderProps) {
|
||||
const {section, isSelected, onSelect, storeName, location, template, infoFields} = props;
|
||||
// ★ props 로 온 주소만 쓴다. 없으면 카드 대신 준비 중 안내를 둔다 —
|
||||
// 시연용 주소로 떨어지면 손님을 남의 집으로 보낸다.
|
||||
const address = infoFields.find((f) => f.id === 'address')?.value ?? '';
|
||||
|
||||
return (
|
||||
<SectionFrame section={section} isSelected={isSelected} onSelect={onSelect} tone="tint">
|
||||
<SectionBody width="narrow">
|
||||
<SectionHeading
|
||||
variant="minimal"
|
||||
title={section.name}
|
||||
subtitle={section.description}
|
||||
trailing={
|
||||
<span className="flex items-center gap-1 text-[11px] text-stone-500">
|
||||
<MapPin className="size-3.5" />
|
||||
{location}
|
||||
</span>
|
||||
}
|
||||
colors={template.colors}
|
||||
/>
|
||||
|
||||
{address ? (
|
||||
<AddressCard
|
||||
address={address}
|
||||
searchName={storeName}
|
||||
variant="bar"
|
||||
colors={template.colors}
|
||||
/>
|
||||
) : (
|
||||
<EmptyStateNotice>주소는 아직 준비 중입니다.</EmptyStateNotice>
|
||||
)}
|
||||
</SectionBody>
|
||||
</SectionFrame>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user