diff --git a/src/data/mock.ts b/src/data/mock.ts index cd367ee..84ac6ed 100644 --- a/src/data/mock.ts +++ b/src/data/mock.ts @@ -1,6 +1,7 @@ import { MonitorPlay, Bell, + BookOpen, Boxes, ChartNoAxesColumnIncreasing, FileKey, @@ -99,7 +100,7 @@ export const navGroups = [ { label: '라이센스', icon: FileKey }, { label: '공지사항', icon: Megaphone }, { label: '약관', icon: ScrollText }, - { label: '매뉴얼', icon: ScrollText } + { label: '매뉴얼', icon: BookOpen } ] }, { diff --git a/src/pages/operations/ManualsPage.tsx b/src/pages/operations/ManualsPage.tsx index 8a9ff5c..64f1897 100644 --- a/src/pages/operations/ManualsPage.tsx +++ b/src/pages/operations/ManualsPage.tsx @@ -19,6 +19,27 @@ type ManualForm = Pick + {avatarUrl && !failed ? ( + setFailed(true)} /> + ) : ( + {initial} + )} +
+

{name}

+

{formatDateTime(document.createdAt)}

+
+ + ); +} + export function ManualsPage() { const { toast } = useToast(); const [documents, setDocuments] = useState([]); @@ -92,7 +113,7 @@ export function ManualsPage() { { key: 'body', header: '본문', flexible: true, className: 'px-5 py-3', cell: (row) =>

{row.body}

}, { key: 'published', header: '공개', width: 100, className: 'px-5 py-3', cell: (row) => }, { key: 'sortOrder', header: '순서', width: 80, className: 'px-5 py-3 text-center', cell: (row) => row.sortOrder }, - { key: 'createdAt', header: '등록일', width: 160, className: 'px-5 py-3 text-xs text-muted-foreground', cell: (row) => formatDateTime(row.createdAt) }, + { key: 'createdAt', header: '생성', width: 190, className: 'px-5 py-3', cell: (row) => }, { key: 'actions', header: '', className: 'px-5 py-3', cell: (row) =>
}, ], []); diff --git a/src/pages/operations/operations-api.ts b/src/pages/operations/operations-api.ts index eb614c1..0d73690 100644 --- a/src/pages/operations/operations-api.ts +++ b/src/pages/operations/operations-api.ts @@ -134,6 +134,10 @@ export type ManualDocument = { body: string; isPublished: boolean; sortOrder: number; + createdById?: string | null; + createdByName?: string | null; + createdByEmail?: string | null; + createdByAvatarUrl?: string | null; createdAt: string; updatedAt: string; };