vendor slugs routes instead of ids

This commit is contained in:
2026-01-27 16:56:57 -05:00
parent aa2f30c086
commit c6ff651f21
10 changed files with 247 additions and 120 deletions

View File

@@ -14,6 +14,7 @@ import { useRouter } from 'next/navigation'
interface VendorRow {
id: string
slug: string
name: string
type: VendorType
description?: string | null
@@ -189,7 +190,7 @@ export default function VendorsTable({ initialVendors }: Props) {
// Handle row click
const handleRowClick = (vendor: VendorRow) => {
router.push(`/vendors/${vendor.id}`)
router.push(`/vendors/${vendor.slug}`)
}
return (