Updated lib
This commit is contained in:
@@ -29,6 +29,7 @@ import { Input } from "@/components/ui/input"
|
||||
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"
|
||||
import { deleteUrl } from "@/lib/actions/url"
|
||||
import { urls } from "@/lib/drizzle/schema"
|
||||
import Link from "next/link"
|
||||
import { useRouter } from "next/navigation"
|
||||
import { toast } from "sonner"
|
||||
|
||||
@@ -67,7 +68,9 @@ export const columns: ColumnDef<UrlRecord>[] = [
|
||||
const url = row.getValue("url") as string
|
||||
return (
|
||||
<div className="max-w-[300px] truncate" title={url}>
|
||||
{url}
|
||||
<Link href={url}>
|
||||
{url.replace(/^(https?:\/\/)/, "")}
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user