fix(notes): link dashboard note activity
This commit is contained in:
parent
d8d6e71670
commit
9f2670ca8e
@ -1,5 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Link from "next/link";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { AppShell } from "@/components/AppShell";
|
import { AppShell } from "@/components/AppShell";
|
||||||
import { listNoteSummaries, listWorkspaceSummaries } from "@/lib/notes-client";
|
import { listNoteSummaries, listWorkspaceSummaries } from "@/lib/notes-client";
|
||||||
@ -143,7 +144,12 @@ export default function DashboardPage() {
|
|||||||
{error ? <div style={{ color: "var(--ml-text-secondary)" }}>{error}</div> : null}
|
{error ? <div style={{ color: "var(--ml-text-secondary)" }}>{error}</div> : null}
|
||||||
<div style={{ display: "grid", gap: "var(--ml-space-3)" }}>
|
<div style={{ display: "grid", gap: "var(--ml-space-3)" }}>
|
||||||
{recentNotes.map((note) => (
|
{recentNotes.map((note) => (
|
||||||
<article key={note.id} className="surface-muted" style={{ padding: "var(--ml-space-4)", display: "grid", gap: "var(--ml-space-2)" }}>
|
<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 style={{ display: "flex", justifyContent: "space-between", gap: "var(--ml-space-3)", flexWrap: "wrap" }}>
|
<div style={{ display: "flex", justifyContent: "space-between", gap: "var(--ml-space-3)", flexWrap: "wrap" }}>
|
||||||
<strong>{note.title}</strong>
|
<strong>{note.title}</strong>
|
||||||
<span style={{ color: "var(--ml-text-secondary)" }}>{note.updatedBy}</span>
|
<span style={{ color: "var(--ml-text-secondary)" }}>{note.updatedBy}</span>
|
||||||
@ -154,7 +160,7 @@ export default function DashboardPage() {
|
|||||||
<span key={tag} className="badge">#{tag}</span>
|
<span key={tag} className="badge">#{tag}</span>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user