Add entry_id relationship links to Entries
- Introduce reusable EntryLink component - Use EntryLink in Releases and Label detail tables - Link both ID and title to /zxdb/entries/[id] for consistency Signed-off-by: Junie@MacOS
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import Link from "next/link";
|
||||
import EntryLink from "../components/EntryLink";
|
||||
import { usePathname, useRouter } from "next/navigation";
|
||||
|
||||
type Item = {
|
||||
@@ -313,9 +314,11 @@ export default function ReleasesExplorer({
|
||||
<tbody>
|
||||
{data.items.map((it) => (
|
||||
<tr key={`${it.entryId}-${it.releaseSeq}`}>
|
||||
<td>{it.entryId}</td>
|
||||
<td>
|
||||
<Link href={`/zxdb/entries/${it.entryId}`}>{it.entryTitle}</Link>
|
||||
<EntryLink id={it.entryId} />
|
||||
</td>
|
||||
<td>
|
||||
<EntryLink id={it.entryId} title={it.entryTitle} />
|
||||
</td>
|
||||
<td>#{it.releaseSeq}</td>
|
||||
<td>{it.year ?? <span className="text-secondary">-</span>}</td>
|
||||
|
||||
Reference in New Issue
Block a user