fix(mobile): widen ListCard href type to Route

Project has experimental.typedRoutes enabled; passing template-literal
URLs through the Link href prop requires the wider Route type. Cast
at the Link boundary inside ListCard so callers can keep the simpler
string-typed href API.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt Ciaccio
2026-05-01 15:40:52 +02:00
parent bcea28cd71
commit 9eadaf035e

View File

@@ -1,6 +1,7 @@
'use client';
import Link from 'next/link';
import type { Route } from 'next';
import { type ReactNode } from 'react';
import { cn } from '@/lib/utils';
@@ -52,7 +53,7 @@ export function ListCard({
<span aria-hidden className={cn('absolute inset-y-0 left-0 w-1', accentClassName)} />
) : null}
<Link
href={href}
href={href as Route}
aria-label={ariaLabel}
className={cn(
'block p-3',