update
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
import { useParams } from 'next/navigation';
|
||||
import CategoryPage from '@/components/product/Category';
|
||||
import ProductDetailPage from '@/components/product/ProductDetail';
|
||||
import CategoryPage from '@/components/Product/Category';
|
||||
import ProductDetailPage from '@/components/Product/ProductDetail';
|
||||
|
||||
import { resolvePageType } from '@/lib/resolvePageType';
|
||||
|
||||
@@ -14,7 +14,7 @@ export default function DynamicPage() {
|
||||
switch (pageType) {
|
||||
case 'category':
|
||||
return <CategoryPage slug={fullSlug} />;
|
||||
case 'product':
|
||||
case 'product-detail':
|
||||
return <ProductDetailPage slug={fullSlug} />;
|
||||
default:
|
||||
return <div>404 Không tìm thấy</div>;
|
||||
|
||||
Reference in New Issue
Block a user