7.1 게시글 CRUD API 및 페이지 연동 o
This commit is contained in:
@@ -55,7 +55,7 @@ export function PostList({ boardId, sort = "recent", q }: { boardId?: string; so
|
||||
{items.map((p) => (
|
||||
<li key={p.id} style={{ padding: 12, border: "1px solid #eee", borderRadius: 8 }}>
|
||||
<div style={{ display: "flex", justifyContent: "space-between" }}>
|
||||
<strong>{p.title}</strong>
|
||||
<strong><a href={`/posts/${p.id}`}>{p.title}</a></strong>
|
||||
<span style={{ opacity: 0.7 }}>{new Date(p.createdAt).toLocaleString()}</span>
|
||||
</div>
|
||||
<div style={{ fontSize: 12, opacity: 0.8 }}>
|
||||
|
||||
Reference in New Issue
Block a user