feat: 가맹몰 상세 목록에서 상세가 없는 행의 [수정]을 [생성]으로 보인다
가는 곳은 같다(그 가맹점의 상세 화면) — 상세가 없으면 거기서 처음 만들므로 버튼 이름을 맞춘다(사용자 요청). Co-Authored-By: Claude Fable 5.1
@211693b5e858fd4fc90399f08b849c444d5f6d7c
--- app/(protected)/(basic)/system/merchant-details/_components/merchant-detail-row-actions.tsx
+++ app/(protected)/(basic)/system/merchant-details/_components/merchant-detail-row-actions.tsx
... | ... | @@ -17,9 +17,8 @@ |
| 17 | 17 |
} |
| 18 | 18 |
|
| 19 | 19 |
/** |
| 20 |
- * 기획 BO-MAL-001 관리 열 — 모든 행에 [수정] [비활성|노출] [삭제](시안대로, 사용자 확정). [수정]은 그 |
|
| 21 |
- * 가맹점의 상세 화면으로 가고(상세가 없으면 거기서 처음 만든다), 상세가 없는 행은 [비활성]·[삭제]가 |
|
| 22 |
- * 잠긴다 — 지울 상세가 없기 때문이다. |
|
| 20 |
+ * 기획 BO-MAL-001 관리 열 — [수정|생성] [비활성|노출] [삭제]. 상세가 없는 행은 첫 버튼이 [생성]으로 |
|
| 21 |
+ * 바뀌어 그 가맹점에 상세를 처음 만드는 화면으로 가고, [비활성]·[삭제]는 잠긴다(사용자 확정). |
|
| 23 | 22 |
*/ |
| 24 | 23 |
export function MerchantDetailRowActions({ row }: MerchantDetailRowActionsProps) {
|
| 25 | 24 |
const router = useRouter(); |
... | ... | @@ -69,7 +68,7 @@ |
| 69 | 68 |
<FoxButton |
| 70 | 69 |
type="default" |
| 71 | 70 |
size="sm" |
| 72 |
- label="수정" |
|
| 71 |
+ label={row.hasDetail ? '수정' : '생성'}
|
|
| 73 | 72 |
onAction={() => router.push(merchantDetailPath(row.id))}
|
| 74 | 73 |
/> |
| 75 | 74 |
<FoxButton |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?