feat: add live links to entries RecentEdits

This commit is contained in:
Thomas Bishop 2025-07-25 15:46:31 +01:00
parent 4e7d4f6a3c
commit ef9abafda0

View file

@ -1,11 +1,21 @@
import { RecentEditsDataTable } from "@/components/RecentEditsDataTable"
import { useQuery } from "@tanstack/react-query"
import api from "../api/eolas-api"
import { Link } from "react-router"
const columns = [
{
accessorKey: "title",
header: "Title",
cell: ({ cell, row }) => {
return (
<Link to={`entries/${row.original.title}`}>
<span className="text-black underline-offset-3 underline hover:text-gray-700">
{row.original.title}
</span>
</Link>
)
},
},
{
accessorKey: "date",