Skip to content

Commit

Permalink
Add link to vehicle type from make page
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Sep 22, 2024
1 parent ff05b41 commit 4f125a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/make/[make]/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export const columns: ColumnDef<Car>[] = [
{
accessorKey: "vehicle_type",
header: "Vehicle Type",
cell: ({ row }) => {
const type = row.getValue("vehicle_type") as string;
return <Link href={`/vehicle-type/${type.toLowerCase()}`}>{type}</Link>;
},
},
{
accessorKey: "number",
Expand Down

0 comments on commit 4f125a9

Please sign in to comment.