feat: 기관관리 상세에 업무메모 탭 구현
placeholder였던 업무메모 탭을 실제 화면으로 교체한다. 담당자를 기관 담당자 중에서 고르거나 직접 입력할 수 있고, 등록한 메모는 최신순으로 보여주며 확인 후 삭제할 수 있다. - client.ts: WorkMemo 타입 및 getMemos/createMemo/deleteMemo 추가 - WorkMemos.tsx: 담당자 선택(기관 담당자/직접 입력) + 메모 등록/목록/삭제 - OrgOverview.tsx: 업무메모 탭에 WorkMemos 연결 - WorkMemos.test.tsx, OrgOverview.test.tsx: getMemos 목업 포함 테스트 추가 Co-Authored-By: Claude Opus 4.8 (1M context)
@42102e0a220c614561e3f58a3f4095ac51ae3075
--- frontend/src/api/client.ts
+++ frontend/src/api/client.ts
... | ... | @@ -62,6 +62,14 @@ |
| 62 | 62 |
|
| 63 | 63 |
export type ChannelKindKey = 'mj' | 'law' |
| 64 | 64 |
|
| 65 |
+export interface WorkMemo {
|
|
| 66 |
+ id: number |
|
| 67 |
+ orgId: number |
|
| 68 |
+ contactName: string |
|
| 69 |
+ body: string |
|
| 70 |
+ createdAt: number |
|
| 71 |
+} |
|
| 72 |
+ |
|
| 65 | 73 |
/** |
| 66 | 74 |
* 서버가 4xx/5xx로 응답했을 때 던지는 예외. status를 함께 들고 있어야 호출자가 |
| 67 | 75 |
* "인증이 끊긴 것(401)"과 "그 밖의 모든 오류"를 구분해서 다르게 처리할 수 있다 - |
... | ... | @@ -130,6 +138,34 @@ |
| 130 | 138 |
return `/api/files/${fileId}`
|
| 131 | 139 |
} |
| 132 | 140 |
|
| 141 |
+export function getMemos(orgId: number): Promise<WorkMemo[]> {
|
|
| 142 |
+ return request<WorkMemo[]>(`/api/orgs/${orgId}/memos`)
|
|
| 143 |
+} |
|
| 144 |
+ |
|
| 145 |
+export function createMemo( |
|
| 146 |
+ orgId: number, |
|
| 147 |
+ memo: { contactName: string; body: string },
|
|
| 148 |
+): Promise<WorkMemo> {
|
|
| 149 |
+ return request<WorkMemo>(`/api/orgs/${orgId}/memos`, {
|
|
| 150 |
+ method: 'POST', |
|
| 151 |
+ headers: { 'Content-Type': 'application/json' },
|
|
| 152 |
+ body: JSON.stringify(memo), |
|
| 153 |
+ }) |
|
| 154 |
+} |
|
| 155 |
+ |
|
| 156 |
+/** 204를 돌려주므로 request()의 json() 경로를 타지 않고 직접 부른다(logout()과 동일한 패턴). */ |
|
| 157 |
+export async function deleteMemo(orgId: number, memoId: number): Promise<void> {
|
|
| 158 |
+ const response = await fetch(`/api/orgs/${orgId}/memos/${memoId}`, {
|
|
| 159 |
+ method: 'DELETE', |
|
| 160 |
+ credentials: 'same-origin', |
|
| 161 |
+ headers: { 'X-XSRF-TOKEN': csrfToken() },
|
|
| 162 |
+ }) |
|
| 163 |
+ if (!response.ok) {
|
|
| 164 |
+ const body = await response.text() |
|
| 165 |
+ throw new ApiError(response.status, `요청 실패 (${response.status}): ${body}`)
|
|
| 166 |
+ } |
|
| 167 |
+} |
|
| 168 |
+ |
|
| 133 | 169 |
export function uploadSeed(file: File): Promise<SeedReport> {
|
| 134 | 170 |
const form = new FormData() |
| 135 | 171 |
form.append('file', file)
|
--- frontend/src/components/OrgOverview.test.tsx
+++ frontend/src/components/OrgOverview.test.tsx
... | ... | @@ -6,12 +6,14 @@ |
| 6 | 6 |
const mocks = vi.hoisted(() => ({
|
| 7 | 7 |
getPosts: vi.fn(), |
| 8 | 8 |
getFiles: vi.fn(), |
| 9 |
+ getMemos: vi.fn(), |
|
| 9 | 10 |
})) |
| 10 | 11 |
|
| 11 | 12 |
vi.mock('../api/client', async (importOriginal) => ({
|
| 12 | 13 |
...(await importOriginal<typeof import('../api/client')>()),
|
| 13 | 14 |
getPosts: mocks.getPosts, |
| 14 | 15 |
getFiles: mocks.getFiles, |
| 16 |
+ getMemos: mocks.getMemos, |
|
| 15 | 17 |
})) |
| 16 | 18 |
|
| 17 | 19 |
function org(overrides: Partial<Org> = {}): Org {
|
... | ... | @@ -34,6 +36,7 @@ |
| 34 | 36 |
beforeEach(() => {
|
| 35 | 37 |
mocks.getPosts.mockReset().mockResolvedValue([]) |
| 36 | 38 |
mocks.getFiles.mockReset().mockResolvedValue([]) |
| 39 |
+ mocks.getMemos.mockReset().mockResolvedValue([]) |
|
| 37 | 40 |
}) |
| 38 | 41 |
|
| 39 | 42 |
describe('OrgOverview', () => {
|
--- frontend/src/components/OrgOverview.tsx
+++ frontend/src/components/OrgOverview.tsx
... | ... | @@ -3,6 +3,7 @@ |
| 3 | 3 |
import ChannelFiles from './ChannelFiles' |
| 4 | 4 |
import ChannelPosts from './ChannelPosts' |
| 5 | 5 |
import StatusBadge from './StatusBadge' |
| 6 |
+import WorkMemos from './WorkMemos' |
|
| 6 | 7 |
|
| 7 | 8 |
// 기관관리 상세 화면. 3단계 대시보드 시안의 "기관관리" 레이아웃을 따른다. |
| 8 | 9 |
// 웹 DB에 있는 것(연번·기관명·신청기관 담당자·채널)만 실데이터고, |
... | ... | @@ -199,6 +200,10 @@ |
| 199 | 200 |
<div className="mt-4 rounded-lg border border-gray-200"> |
| 200 | 201 |
<ChannelFiles key={org.id} org={org} />
|
| 201 | 202 |
</div> |
| 203 |
+ ) : activeTab === '업무메모' ? ( |
|
| 204 |
+ <div className="mt-4 rounded-lg border border-gray-200"> |
|
| 205 |
+ <WorkMemos key={org.id} org={org} />
|
|
| 206 |
+ </div> |
|
| 202 | 207 |
) : ( |
| 203 | 208 |
<div className="mt-4 rounded-lg border border-dashed border-gray-200 p-10 text-center text-sm text-gray-400"> |
| 204 | 209 |
{activeTab} 상세 화면은 추후 확정
|
+++ frontend/src/components/WorkMemos.test.tsx
... | ... | @@ -0,0 +1,164 @@ |
| 1 | +import { fireEvent, render, screen, waitFor, within } from '@testing-library/react' | |
| 2 | +import { beforeEach, describe, expect, it, vi } from 'vitest' | |
| 3 | +import WorkMemos from './WorkMemos' | |
| 4 | +import type { Org, WorkMemo } from '../api/client' | |
| 5 | + | |
| 6 | +const mocks = vi.hoisted(() => ({ | |
| 7 | + getMemos: vi.fn(), | |
| 8 | + createMemo: vi.fn(), | |
| 9 | + deleteMemo: vi.fn(), | |
| 10 | +})) | |
| 11 | + | |
| 12 | +vi.mock('../api/client', async (importOriginal) => ({ | |
| 13 | + ...(await importOriginal<typeof import('../api/client')>()), | |
| 14 | + getMemos: mocks.getMemos, | |
| 15 | + createMemo: mocks.createMemo, | |
| 16 | + deleteMemo: mocks.deleteMemo, | |
| 17 | +})) | |
| 18 | + | |
| 19 | +function org(overrides: Partial<Org> = {}): Org { | |
| 20 | + return { | |
| 21 | + id: 1, | |
| 22 | + orgNo: '001', | |
| 23 | + orgName: '국제방송교류재단', | |
| 24 | + status: 'ACTIVE', | |
| 25 | + deptName: '데이터정보화팀', | |
| 26 | + managerName: '송민지', | |
| 27 | + managerTitle: '과장', | |
| 28 | + managerPhone: '02-3475-5434', | |
| 29 | + managerEmail: 'ming@arirang.com', | |
| 30 | + channelIdMj: 'chan-mj', | |
| 31 | + channelIdLaw: 'chan-law', | |
| 32 | + ...overrides, | |
| 33 | + } | |
| 34 | +} | |
| 35 | + | |
| 36 | +function memo(overrides: Partial<WorkMemo> = {}): WorkMemo { | |
| 37 | + return { | |
| 38 | + id: 1, | |
| 39 | + orgId: 1, | |
| 40 | + contactName: '송민지 과장', | |
| 41 | + body: '채널 생성 일정 문의', | |
| 42 | + createdAt: new Date('2026-07-01T10:30:00').getTime(), | |
| 43 | + ...overrides, | |
| 44 | + } | |
| 45 | +} | |
| 46 | + | |
| 47 | +beforeEach(() => { | |
| 48 | + mocks.getMemos.mockReset() | |
| 49 | + mocks.createMemo.mockReset() | |
| 50 | + mocks.deleteMemo.mockReset() | |
| 51 | +}) | |
| 52 | + | |
| 53 | +describe('WorkMemos', () => { | |
| 54 | + it('등록된 메모를 담당자와 본문과 함께 보여준다', async () => { | |
| 55 | + mocks.getMemos.mockResolvedValue([memo()]) | |
| 56 | + | |
| 57 | + render(<WorkMemos org={org()} />) | |
| 58 | + | |
| 59 | + await waitFor(() => expect(screen.getByRole('listitem')).toBeTruthy()) | |
| 60 | + | |
| 61 | + const item = within(screen.getByRole('listitem')) | |
| 62 | + expect(item.getByText('송민지 과장')).toBeTruthy() | |
| 63 | + expect(item.getByText('채널 생성 일정 문의')).toBeTruthy() | |
| 64 | + }) | |
| 65 | + | |
| 66 | + it('메모가 없으면 안내 문구를 보여준다', async () => { | |
| 67 | + mocks.getMemos.mockResolvedValue([]) | |
| 68 | + | |
| 69 | + render(<WorkMemos org={org()} />) | |
| 70 | + | |
| 71 | + await waitFor(() => { | |
| 72 | + expect( | |
| 73 | + screen.getByText('등록된 메모가 없습니다. 통화 후 첫 메모를 남겨보세요.'), | |
| 74 | + ).toBeTruthy() | |
| 75 | + }) | |
| 76 | + }) | |
| 77 | + | |
| 78 | + it('담당자 선택에 기관 담당자와 직접 입력이 나오고, 직접 입력을 고르면 이름 입력칸이 나타난다', async () => { | |
| 79 | + mocks.getMemos.mockResolvedValue([]) | |
| 80 | + | |
| 81 | + render(<WorkMemos org={org()} />) | |
| 82 | + | |
| 83 | + await waitFor(() => expect(mocks.getMemos).toHaveBeenCalled()) | |
| 84 | + | |
| 85 | + expect(screen.getByRole('option', { name: '송민지 과장' })).toBeTruthy() | |
| 86 | + expect(screen.getByRole('option', { name: '직접 입력' })).toBeTruthy() | |
| 87 | + expect(screen.queryByLabelText('담당자 이름')).toBeNull() | |
| 88 | + | |
| 89 | + fireEvent.change(screen.getByLabelText('담당자'), { target: { value: '__custom__' } }) | |
| 90 | + | |
| 91 | + expect(screen.getByLabelText('담당자 이름')).toBeTruthy() | |
| 92 | + }) | |
| 93 | + | |
| 94 | + it('메모 내용이 비어 있으면 등록 버튼이 비활성이고, 입력하면 활성화된다', async () => { | |
| 95 | + mocks.getMemos.mockResolvedValue([]) | |
| 96 | + | |
| 97 | + render(<WorkMemos org={org()} />) | |
| 98 | + | |
| 99 | + await waitFor(() => expect(mocks.getMemos).toHaveBeenCalled()) | |
| 100 | + | |
| 101 | + const submit = screen.getByRole('button', { name: '등록' }) | |
| 102 | + expect(submit).toBeDisabled() | |
| 103 | + | |
| 104 | + fireEvent.change(screen.getByLabelText('메모 내용'), { target: { value: '통화 내용' } }) | |
| 105 | + | |
| 106 | + expect(submit).not.toBeDisabled() | |
| 107 | + }) | |
| 108 | + | |
| 109 | + it('등록을 누르면 선택된 담당자와 본문으로 createMemo를 호출하고 본문을 비운다', async () => { | |
| 110 | + mocks.getMemos.mockResolvedValue([]) | |
| 111 | + mocks.createMemo.mockResolvedValue(memo({ id: 2, body: '통화 내용' })) | |
| 112 | + | |
| 113 | + render(<WorkMemos org={org()} />) | |
| 114 | + | |
| 115 | + await waitFor(() => expect(mocks.getMemos).toHaveBeenCalled()) | |
| 116 | + | |
| 117 | + fireEvent.change(screen.getByLabelText('메모 내용'), { target: { value: '통화 내용' } }) | |
| 118 | + fireEvent.click(screen.getByRole('button', { name: '등록' })) | |
| 119 | + | |
| 120 | + await waitFor(() => { | |
| 121 | + expect(mocks.createMemo).toHaveBeenCalledWith(1, { | |
| 122 | + contactName: '송민지 과장', | |
| 123 | + body: '통화 내용', | |
| 124 | + }) | |
| 125 | + }) | |
| 126 | + | |
| 127 | + await waitFor(() => { | |
| 128 | + expect((screen.getByLabelText('메모 내용') as HTMLTextAreaElement).value).toBe('') | |
| 129 | + }) | |
| 130 | + }) | |
| 131 | + | |
| 132 | + it('삭제를 누르면 확인을 물어보고, 확인하면 deleteMemo를 호출한다', async () => { | |
| 133 | + mocks.getMemos.mockResolvedValue([memo()]) | |
| 134 | + mocks.deleteMemo.mockResolvedValue(undefined) | |
| 135 | + const confirmSpy = vi.spyOn(window, 'confirm').mockReturnValue(true) | |
| 136 | + | |
| 137 | + render(<WorkMemos org={org()} />) | |
| 138 | + | |
| 139 | + await waitFor(() => expect(screen.getByText('채널 생성 일정 문의')).toBeTruthy()) | |
| 140 | + | |
| 141 | + fireEvent.click(screen.getByRole('button', { name: '삭제' })) | |
| 142 | + | |
| 143 | + expect(confirmSpy).toHaveBeenCalledWith('이 메모를 삭제할까요?') | |
| 144 | + await waitFor(() => expect(mocks.deleteMemo).toHaveBeenCalledWith(1, 1)) | |
| 145 | + | |
| 146 | + confirmSpy.mockRestore() | |
| 147 | + }) | |
| 148 | + | |
| 149 | + it('삭제 확인을 취소하면 deleteMemo를 호출하지 않는다', async () => { | |
| 150 | + mocks.getMemos.mockResolvedValue([memo()]) | |
| 151 | + const confirmSpy = vi.spyOn(window, 'confirm').mockReturnValue(false) | |
| 152 | + | |
| 153 | + render(<WorkMemos org={org()} />) | |
| 154 | + | |
| 155 | + await waitFor(() => expect(screen.getByText('채널 생성 일정 문의')).toBeTruthy()) | |
| 156 | + | |
| 157 | + fireEvent.click(screen.getByRole('button', { name: '삭제' })) | |
| 158 | + | |
| 159 | + expect(confirmSpy).toHaveBeenCalled() | |
| 160 | + expect(mocks.deleteMemo).not.toHaveBeenCalled() | |
| 161 | + | |
| 162 | + confirmSpy.mockRestore() | |
| 163 | + }) | |
| 164 | +}) |
+++ frontend/src/components/WorkMemos.tsx
... | ... | @@ -0,0 +1,186 @@ |
| 1 | +import { useEffect, useState } from 'react' | |
| 2 | +import { createMemo, deleteMemo, getMemos, type Org, type WorkMemo } from '../api/client' | |
| 3 | + | |
| 4 | +const CUSTOM_CONTACT_VALUE = '__custom__' | |
| 5 | + | |
| 6 | +const dateFormatter = new Intl.DateTimeFormat('ko-KR', { | |
| 7 | + year: 'numeric', | |
| 8 | + month: '2-digit', | |
| 9 | + day: '2-digit', | |
| 10 | + hour: '2-digit', | |
| 11 | + minute: '2-digit', | |
| 12 | +}) | |
| 13 | + | |
| 14 | +function formatDateTime(createdAt: number): string { | |
| 15 | + return dateFormatter.format(new Date(createdAt)) | |
| 16 | +} | |
| 17 | + | |
| 18 | +function managerOptionLabel(org: Org): string | null { | |
| 19 | + if (!org.managerName) { | |
| 20 | + return null | |
| 21 | + } | |
| 22 | + return org.managerTitle ? `${org.managerName} ${org.managerTitle}` : org.managerName | |
| 23 | +} | |
| 24 | + | |
| 25 | +/** 기관관리 상세의 업무메모 탭. 통화 등 담당자와의 연락 내용을 기록/조회/삭제한다. */ | |
| 26 | +export default function WorkMemos({ org }: { org: Org }) { | |
| 27 | + const managerLabel = managerOptionLabel(org) | |
| 28 | + | |
| 29 | + const [memos, setMemos] = useState<WorkMemo[]>([]) | |
| 30 | + const [loading, setLoading] = useState(false) | |
| 31 | + const [contactChoice, setContactChoice] = useState(managerLabel ?? CUSTOM_CONTACT_VALUE) | |
| 32 | + const [customContactName, setCustomContactName] = useState('') | |
| 33 | + const [body, setBody] = useState('') | |
| 34 | + const [busy, setBusy] = useState(false) | |
| 35 | + const [error, setError] = useState<string | null>(null) | |
| 36 | + | |
| 37 | + useEffect(() => { | |
| 38 | + let cancelled = false | |
| 39 | + setLoading(true) | |
| 40 | + | |
| 41 | + getMemos(org.id) | |
| 42 | + .then((data) => { | |
| 43 | + if (!cancelled) { | |
| 44 | + setMemos(data) | |
| 45 | + } | |
| 46 | + }) | |
| 47 | + .finally(() => { | |
| 48 | + if (!cancelled) { | |
| 49 | + setLoading(false) | |
| 50 | + } | |
| 51 | + }) | |
| 52 | + | |
| 53 | + return () => { | |
| 54 | + cancelled = true | |
| 55 | + } | |
| 56 | + }, [org.id]) | |
| 57 | + | |
| 58 | + const isCustom = contactChoice === CUSTOM_CONTACT_VALUE | |
| 59 | + const effectiveContactName = (isCustom ? customContactName : contactChoice).trim() | |
| 60 | + const canSubmit = effectiveContactName !== '' && body.trim() !== '' && !busy | |
| 61 | + | |
| 62 | + async function handleSubmit() { | |
| 63 | + if (!canSubmit) { | |
| 64 | + return | |
| 65 | + } | |
| 66 | + setBusy(true) | |
| 67 | + setError(null) | |
| 68 | + try { | |
| 69 | + const created = await createMemo(org.id, { contactName: effectiveContactName, body }) | |
| 70 | + setMemos((prev) => [created, ...prev]) | |
| 71 | + setBody('') | |
| 72 | + } catch (e) { | |
| 73 | + setError(e instanceof Error ? e.message : '메모 등록에 실패했습니다.') | |
| 74 | + } finally { | |
| 75 | + setBusy(false) | |
| 76 | + } | |
| 77 | + } | |
| 78 | + | |
| 79 | + async function handleDelete(memo: WorkMemo) { | |
| 80 | + if (!window.confirm('이 메모를 삭제할까요?')) { | |
| 81 | + return | |
| 82 | + } | |
| 83 | + try { | |
| 84 | + await deleteMemo(org.id, memo.id) | |
| 85 | + setMemos((prev) => prev.filter((m) => m.id !== memo.id)) | |
| 86 | + } catch (e) { | |
| 87 | + setError(e instanceof Error ? e.message : '메모 삭제에 실패했습니다.') | |
| 88 | + } | |
| 89 | + } | |
| 90 | + | |
| 91 | + return ( | |
| 92 | + <div className="p-4"> | |
| 93 | + <section className="rounded-lg border border-gray-200 p-4"> | |
| 94 | + <div className="grid grid-cols-1 gap-3 sm:grid-cols-2"> | |
| 95 | + <div className="flex flex-col gap-1 text-sm"> | |
| 96 | + <label htmlFor="memo-contact-choice" className="text-xs text-gray-500"> | |
| 97 | + 담당자 | |
| 98 | + </label> | |
| 99 | + <select | |
| 100 | + id="memo-contact-choice" | |
| 101 | + value={contactChoice} | |
| 102 | + onChange={(e) => setContactChoice(e.target.value)} | |
| 103 | + className="rounded-md border border-gray-300 px-2 py-1.5 text-sm" | |
| 104 | + > | |
| 105 | + {managerLabel && <option value={managerLabel}>{managerLabel}</option>} | |
| 106 | + <option value={CUSTOM_CONTACT_VALUE}>직접 입력</option> | |
| 107 | + </select> | |
| 108 | + </div> | |
| 109 | + | |
| 110 | + {isCustom && ( | |
| 111 | + <div className="flex flex-col gap-1 text-sm"> | |
| 112 | + <label htmlFor="memo-contact-name" className="text-xs text-gray-500"> | |
| 113 | + 담당자 이름 | |
| 114 | + </label> | |
| 115 | + <input | |
| 116 | + id="memo-contact-name" | |
| 117 | + type="text" | |
| 118 | + value={customContactName} | |
| 119 | + onChange={(e) => setCustomContactName(e.target.value)} | |
| 120 | + className="rounded-md border border-gray-300 px-2 py-1.5 text-sm" | |
| 121 | + /> | |
| 122 | + </div> | |
| 123 | + )} | |
| 124 | + </div> | |
| 125 | + | |
| 126 | + <div className="mt-3 flex flex-col gap-1 text-sm"> | |
| 127 | + <label htmlFor="memo-body" className="text-xs text-gray-500"> | |
| 128 | + 메모 내용 | |
| 129 | + </label> | |
| 130 | + <textarea | |
| 131 | + id="memo-body" | |
| 132 | + rows={3} | |
| 133 | + value={body} | |
| 134 | + onChange={(e) => setBody(e.target.value)} | |
| 135 | + className="rounded-md border border-gray-300 px-2 py-1.5 text-sm" | |
| 136 | + /> | |
| 137 | + </div> | |
| 138 | + | |
| 139 | + {error && <p className="mt-2 text-xs text-red-600">{error}</p>} | |
| 140 | + | |
| 141 | + <div className="mt-3 flex justify-end"> | |
| 142 | + <button | |
| 143 | + type="button" | |
| 144 | + disabled={!canSubmit} | |
| 145 | + onClick={() => void handleSubmit()} | |
| 146 | + className="rounded-md bg-blue-600 px-4 py-1.5 text-sm font-semibold text-white hover:bg-blue-700 disabled:cursor-not-allowed disabled:bg-gray-300" | |
| 147 | + > | |
| 148 | + 등록 | |
| 149 | + </button> | |
| 150 | + </div> | |
| 151 | + </section> | |
| 152 | + | |
| 153 | + <div className="mt-4"> | |
| 154 | + {loading ? ( | |
| 155 | + <p className="py-6 text-center text-sm text-gray-400">불러오는 중…</p> | |
| 156 | + ) : memos.length === 0 ? ( | |
| 157 | + <p className="py-6 text-center text-sm text-gray-300"> | |
| 158 | + 등록된 메모가 없습니다. 통화 후 첫 메모를 남겨보세요. | |
| 159 | + </p> | |
| 160 | + ) : ( | |
| 161 | + <ul className="space-y-3"> | |
| 162 | + {memos.map((memo) => ( | |
| 163 | + <li key={memo.id} className="rounded-lg border border-gray-200 p-3"> | |
| 164 | + <div className="flex items-center justify-between gap-2"> | |
| 165 | + <div className="flex items-baseline gap-2"> | |
| 166 | + <span className="text-xs text-gray-400">{formatDateTime(memo.createdAt)}</span> | |
| 167 | + <span className="text-xs text-gray-300">·</span> | |
| 168 | + <span className="text-sm font-medium text-gray-900">{memo.contactName}</span> | |
| 169 | + </div> | |
| 170 | + <button | |
| 171 | + type="button" | |
| 172 | + onClick={() => void handleDelete(memo)} | |
| 173 | + className="rounded-md border border-gray-200 px-2 py-0.5 text-xs text-gray-500 hover:bg-gray-50" | |
| 174 | + > | |
| 175 | + 삭제 | |
| 176 | + </button> | |
| 177 | + </div> | |
| 178 | + <p className="mt-1.5 whitespace-pre-wrap text-sm text-gray-800">{memo.body}</p> | |
| 179 | + </li> | |
| 180 | + ))} | |
| 181 | + </ul> | |
| 182 | + )} | |
| 183 | + </div> | |
| 184 | + </div> | |
| 185 | + ) | |
| 186 | +} |
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?