feat: add live links to entries RecentEdits
This commit is contained in:
parent
4e7d4f6a3c
commit
ef9abafda0
1 changed files with 10 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue