From 9eadaf035e3e74cb66bfb98e7e10bd279c205aad Mon Sep 17 00:00:00 2001 From: Matt Ciaccio Date: Fri, 1 May 2026 15:40:52 +0200 Subject: [PATCH] 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) --- src/components/shared/list-card.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/shared/list-card.tsx b/src/components/shared/list-card.tsx index 797d098..c7486fa 100644 --- a/src/components/shared/list-card.tsx +++ b/src/components/shared/list-card.tsx @@ -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({ ) : null}