Links and data fetching for dynamic routes

This commit is contained in:
Henrik Larsson
2023-08-13 22:16:15 +02:00
parent 3c19fb7a79
commit ce9c62084e
18 changed files with 46 additions and 55 deletions

View File

@@ -18,7 +18,7 @@ import { Grid } from './grid';
interface ProductViewProps {
product: Product;
relatedProducts: Product[];
relatedProducts?: Product[];
}
export default function ProductView({ product, relatedProducts }: ProductViewProps) {