fix(notes): link recent note tags
This commit is contained in:
parent
b147f14b1c
commit
8a1b79c4e4
@ -189,23 +189,24 @@ export default function DashboardPage() {
|
||||
{error ? <div style={{ color: "var(--ml-text-secondary)" }}>{error}</div> : null}
|
||||
<div style={{ display: "grid", gap: "var(--ml-space-3)" }}>
|
||||
{recentNotes.map((note) => (
|
||||
<Link
|
||||
key={note.id}
|
||||
href={`/notes/${note.id}`}
|
||||
className="surface-muted"
|
||||
style={{ padding: "var(--ml-space-4)", display: "grid", gap: "var(--ml-space-2)" }}
|
||||
>
|
||||
<div key={note.id} className="surface-muted" style={{ padding: "var(--ml-space-4)", display: "grid", gap: "var(--ml-space-2)" }}>
|
||||
<div style={{ display: "flex", justifyContent: "space-between", gap: "var(--ml-space-3)", flexWrap: "wrap" }}>
|
||||
<strong>{note.title}</strong>
|
||||
<Link href={`/notes/${note.id}`}>
|
||||
<strong>{note.title}</strong>
|
||||
</Link>
|
||||
<span style={{ color: "var(--ml-text-secondary)" }}>{note.updatedBy}</span>
|
||||
</div>
|
||||
<div style={{ color: "var(--ml-text-secondary)" }}>{note.excerpt}</div>
|
||||
<Link href={`/notes/${note.id}`} style={{ color: "var(--ml-text-secondary)" }}>
|
||||
{note.excerpt}
|
||||
</Link>
|
||||
<div style={{ display: "flex", gap: "var(--ml-space-2)", flexWrap: "wrap" }}>
|
||||
{note.tags.map((tag) => (
|
||||
<span key={tag} className="badge">#{tag}</span>
|
||||
<Link key={tag} href={`/search?q=${encodeURIComponent(tag)}`} className="badge">
|
||||
#{tag}
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user