feat: add customer authentication and order dashboard

This commit is contained in:
2026-09-16 09:06:48 +03:30
parent f49ef11c9c
commit 7c55b3916c
31 changed files with 2193 additions and 53 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import type {Metadata} from 'next';
import {notFound} from 'next/navigation';
import {content} from '@/data/content';
import ProductDetails from '@/components/ProductDetails';
import ProtectedPage from '@/components/auth/ProtectedPage';
type Props = { params: { id: string } };
@@ -17,5 +18,5 @@ export function generateMetadata({params}: Props): Metadata {
export default function ProductPage({params}: Props) {
if (!content.fa.machines.some(machine => machine.id === params.id)) notFound();
return <ProductDetails id={params.id}/>;
return <ProtectedPage><ProductDetails id={params.id}/></ProtectedPage>;
}